qoomon / docker-host

A docker sidecar container to forward all traffic to local docker host or any other host
MIT License
1.09k stars 88 forks source link

Docker-host container takes ~10 seconds to shut down in docker compose #45

Closed a3957273 closed 2 years ago

a3957273 commented 2 years ago

Running: Docker for Mac Version: Docker version 20.10.12, build e91ed57

We have a compose file with half a dozen dependencies which take between 0.2 and 0.4 seconds to shut down on average. The docker-host container takes 10.2 seconds to shut down, significantly outweighing all other containers. Is there a reason for this lengthy shut down time?

It seems to reliably take 10.2 - 10.3 seconds to shut down. Almost as if it's taking the 'normal shut down time' and adding precisely 10 seconds somewhere.

qoomon commented 2 years ago

I think it is because auf the default docker-compose down timeout see https://docs.docker.com/compose/reference/down/

However I'll investigate why docker-host container runs into timeout.

qoomon commented 2 years ago

should be fixed in version 3.0.5

qoomon commented 2 years ago

@a3957273 Could you confirm the fix is working?

a3957273 commented 2 years ago

Sorry for the delay, this does seem faster!

Thanks for the fix ❤️.