Problems Starting Dozzle with Docker Socket-Proxy

0
63
Asked By DockerDude42 On

Hey everyone! I'm pretty new to Docker and I'm following a guide to set up my own media server. I've had success with Socket-Proxy and Portainer, but I'm running into an issue with Dozzle. Most of the time when I try to start Dozzle along with my other containers via a Docker Compose file, it fails and shows the error, "Could not connect to any Docker Engine." Sometimes it starts correctly, but it's only about 15% of the time. Interestingly, when I manually start the Dozzle container with a command using Docker, it works every single time. I've already simplified my Docker Compose and Dozzle configuration to the basics, and I just can't figure out why it's not kicking off properly. While I'm okay with managing logs in the CLI for now, I'm concerned that if this is happening this early in the setup, I might run into bigger issues later. Any thoughts or suggestions?

1 Answer

Answered By TechSavvy99 On

It sounds like your Dozzle container might be trying to start before the socket-proxy is fully up and running. You could try adding a 'depends_on' attribute in your Docker Compose for Dozzle to ensure it waits for socket-proxy to be healthy before starting. This could help with the connection issue!

DockerDude42 -

I had a feeling it might be something like that! I’ll definitely add the 'depends_on' configuration and see if that sorts it out. Thanks a lot!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.