News for hackers. Stuff that matters.
Re:Ask HN: What are the disadvantages of Docker? by fpoling on Saturday April 21, 2018 @05:18PM (#16893490)
Nginx can be updated and restated without loosing any connections. With Nginx under docker it is not possible.
Re:Ask HN: What are the disadvantages of Docker? by marcc on Saturday April 21, 2018 @05:38PM (#16893579)
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.
Re:Ask HN: What are the disadvantages of Docker? by qorrect on Saturday April 21, 2018 @06:20PM (#16893703)
Should 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.
Re:Ask HN: What are the disadvantages of Docker? by fpoling on Sunday April 22, 2018 @02:22PM (#16897627)
I 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.
Re:Ask HN: What are the disadvantages of Docker? by idunno246 on Sunday April 22, 2018 @02:47AM (#16895020)
while 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.

Re:Ask HN: What are the disadvantages of Docker? by marcc on Sunday April 22, 2018 @09:55AM (#16896175)
You 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.