Pedro Machado
01/19/2021, 4:07 PMsupervisord
a while ago and was getting a permission error when trying to access the docker engine. I never got it to work.
I'd like to run the Docker Agent inside of a container managed by docker compose.
I have a couple of questions about this set up:
1. I am setting the restart
policy to always
Would this be enough to restart the agent if it failed or in case of restart of the host?
2. What is the best way to give the agent access to the docker engine running on the host?
Thank you!josh
01/19/2021, 4:42 PM--base-url
to the daemon on your host would probably work (some users have also had to sometimes set --no-docker-interface
when running the agent inside a container). Take a look around on how to access the host daemon for your given OS as they are all slightly different. I have had success in the past using host.docker.internal
Pedro Machado
01/19/2021, 6:35 PM