3 ms·
Why isn’t this possible using docker? I would assume you could still issue an nginx reload command to the container running docker, since it’s the same nginx so
by marcc 8y ago
Why isn’t this possible using docker? I would assume you could still issue an nginx reload command to the container running docker, since it’s the same nginx software running.
- qorrect 8y agoShould be the same I agree. Not only that, under docker you could also have them behind a loadbalancer and just upgrade one at a time with no down time.
- idunno246 8y agowhile it may be possible, its frowned upon. The docker way is immutable containers, so you want to edit the nginx config you 'cant' just do it in place, you need to make a new container with the new config and a new process and kill all the existing containers(and hence processes/connections). docker is basically at the point today where mapreduce was a few years ago. while it may solve some problems, its not a thing that solves everything.
- marcc 8y agoYou could mount the nginx.conf files into the container so they are editable. The “correct” way to run a Docker container is to supply the config at runtime, not at image build time.
- fpoling 8y agoI have not meant the reloading of a configuration. Nginx supports live update of the executable itself when one can update the binary without loosing any connections. Docker just does not support that unless one uses Docker as a mini-os when one runs updates inside the container defeating the purpose of Docker.