Support for Docker via WSL2? #604
-
I'm unsure if watchtower just doesn't work under WSL2 or if I'm doing something wrong. Using the quick start docker create command to create the watchtower instance launches and says The only information in the log is the scheduling first run line above as well as Seems that it never actually does anything. I'm running Windows 10 Pro x64 build 2004 with Docker Desktop version 2.3.0.3 using the WSL 2 based engine. My other docker containers are working fine, watchtower is the only one I'm having problems with. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏 |
Beta Was this translation helpful? Give feedback.
-
You can add Also; I just tried it inside WSL2, and it seems to operate normally. |
Beta Was this translation helpful? Give feedback.
-
With the --debug command I now see this output
So it seems that the issue is that it's not able to see my other containers, though I'm still not sure why exactly it exits with code 255. This part only happens when the container is started with windows, when I manually start/restart it it stays running but with the same message stating that there are no additional watchtower containers. |
Beta Was this translation helpful? Give feedback.
-
Just to update this for anyone having a similar issue, I came across #583 and decided to try just putting all of my docker containers into a docker-compose file along with watchtower and it seems to be working now. Previously I was just using the docker create commands for each image. |
Beta Was this translation helpful? Give feedback.
Just to update this for anyone having a similar issue, I came across #583 and decided to try just putting all of my docker containers into a docker-compose file along with watchtower and it seems to be working now. Previously I was just using the docker create commands for each image.