I have Nginx installed on a Docker container, and I'm trying to run it like this:
docker run -i -t -p 80:80 mydockerimage /usr/sbin/nginx
The problem is that the Nginx method works, the initial process immediately spawns the Nginx master process and some workers, and then exits. Because Docker only looks at the PID of the original command, the container stops.
How to prevent container from stopping? I need to say that it binds to the first child process or stops the original Nginx process.
linux docker nginx
Seldo Sep 17 '13 at 23:03 2013-09-17 23:03
source share