Can you run GUI applications in a Linux Docker container?

You can simply install a vncserver along with Firefox 🙂 I pushed an image, vnc/firefox, here: docker pull creack/firefox-vnc The image has been made with this Dockerfile: # Firefox over VNC # # VERSION 0.1 # DOCKER-VERSION 0.2 FROM ubuntu:12.04 # Make sure the package repository is up to date RUN echo “deb http://archive.ubuntu.com/ubuntu precise … Read more

COPY with docker but with exclusion

Create file .dockerignore in your docker build context directory (so in this case, most likely a directory that is a parent to node_modules) with one line in it: **/node_modules although you probably just want: node_modules Info about dockerignore: https://docs.docker.com/engine/reference/builder/#dockerignore-file

Communication between multiple docker-compose projects

You just need to make sure that the containers you want to talk to each other are on the same network. Networks are a first-class docker construct, and not specific to compose. # front/docker-compose.yml version: ‘2’ services: front: … networks: – some-net networks: some-net: driver: bridge … # api/docker-compose.yml version: ‘2’ services: api: … networks: … Read more

Docker container will automatically stop after “docker run -d”

The centos dockerfile has a default command bash. That means, when run in background (-d), the shell exits immediately. Update 2017 More recent versions of docker authorize to run a container both in detached mode and in foreground mode (-t, -i or -it) In that case, you don’t need any additional command and this is … Read more

Docker Compose wait for container X before starting Y

Finally found a solution with a docker-compose method. Since docker-compose file format 2.1 you can define healthchecks. I did it in a example project you need to install at least docker 1.12.0+. I also needed to extend the rabbitmq-management Dockerfile, because curl isn’t installed on the official image. Now I test if the management page … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)