I’m new to docker, sorry if this is a FAQ. I’m running CoreOS alpha 1214.0.0 on a dev server. I’ve run two conainers that I’d like to keep running, and started them with docker run --restart=always blah
. This results in the docker host listening on ports 80 and 443, which is what I want.
After some time (unsure how long, but reliably “tomorrow”) the containers have stopped running. Docker host is no longer listening on those ports.
Running docker ps
shows the two containers as running, with status ‘up less than a second’, so it appears that running this command has “woken up” the containers. Sure enough, after running docker ps
the host starts listening on those ports again and everything is fine. See:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0dc41bdb95f4 gh2k/xen-orchestra:latest "/usr/bin/supervisord" 10 days ago Up Less than a second 80/tcp xen-orchestra
9c0b4921e49d jwilder/nginx-proxy "/app/docker-entrypoi" 12 days ago Up Less than a second 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx-proxy
What am I doing wrong?