-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watchtower failed to create containers on host network #1906
Comments
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! 🙏 |
I'm also facing the same issue:
|
It also happens with non-host networking. |
I also have this with containers that use both host and bridge network, started recently, possibly by docker-ce update. |
Seeing also with Raspberry Pi |
Debian Bookworm - Docker version 25.0.0, build e758fe5 Being there hasn't been an update to watchtower in some time, I also suspect this is a docker issue. Following along here, in the event a solution is found. For the time being I had to disable watchtower. |
Same problem. What's worse is that it suddenly deleted the whole container without recreating it... |
In my instance, this affects containers created using docker run. Containers started with docker compose update without any problem. The issues started after docker updated to version 25.0.0 |
Actually, my containers are all started with docker compose and had this problem. |
Just wanted to mention I have the same issue with Portainer if I try to edit/duplicate these same containers. |
Chiming in as well, created using docker-compose and on the bridge network. There was a docker-ce update a few days ago so it's entirely possible that's the culprit, but the first symptom I had was the error during watchtower recreating the container. Starting manually in Portainer worked fine afterwards.
Docker version details:
|
Not sure this has something to do with it. This also failed for a container being configured on the system defined bridge network...Created a non-system created bridge network and then recreated the container under that user-defined bridge network. An update came in for that container and it recreated just fine. Wondering if this has to do with the system defined networks (bridge, host, none) specifically? Worth noting I also moved the Watchtower container to the user defined bridge network. |
Just chiming in to say ive also got this same problem. Started around the same time as everyone else. |
same issue here, watchtower kills and delete the containers but never re-creates them. as someone with over 100 containers, playing "what disappeared last night" everyday is very annoying. this bug should be highest priority not only "medium"
seems to be happening since updating docker to 25.0.0 |
same error and problem here |
FWIW, I moved all my containers that were on the default system HOST network (network_mode: host) to a user bridge network, and was able to eliminate the error. All containers now update per usual. |
Can you recover containers Watchdog had stopped and creating (but received this error) ? Can you make the change you mentioned and this will allow them to recover / watchdog complete the creation? |
this is happening not only on host container but also on container already configured with bridge, and this is random since container in bridge are not recrarete but at the next update after a compose restart they update work properly. |
When my containers failed, prior to moving them to a user bridge, the updated image was downloaded, the container was stopped and deleted, and watchtower failed to recreate the container and start it. I had recreate the container using docker run / docker compose. This morning I moved containers that had failed previously on the default host network to a user bridge, with the exception of one container. All of these containers had available updates. The bridge containers updated fine, the host network container failed. I will continue to monitor this to see if the bridge containers end up failing gain. |
I'm facing the same problem, however some containers need access to my host network, so switching them to a bridged network wouldn't work for me. |
Unfortunately ive got several containers that need access to the host network, so like rmtsrc, using bridge network unfortunately isnt a fix. |
Many containers supporting the home-assistant ecosystem also require the containers to share its network namespace with the host machine. These have been failing when updated using Watchtower; however, Docker compose is able to bring them up without issue. Hoping the issue with Watchtower is resolved soon! |
I ended up restoring my Proxmox VM Backup of the Linux VM I'm using running docker. Restored all my containers and I disabled Watchtower so it doesn't upgrade containers to latest image. Hoping this gets resolved soon. |
I have this too but it doesn't seem to be exclusive to Watchtower. If I manually try to redeploy a container from Portainer I get this same error. Redeploying the stack works though so docker compose is the workaround. |
msg="Error response from daemon: invalid config for network host: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks" |
Looks like they are fixing this in docker ... |
Same here: |
FYI - Problem for docker was resolved and fixes released docker/for-linux#1481 (comment) Personally, I will be waiting a bit before updating docker and re-enabling Watchtower. If anyone else tests updated docker with Watchtower to confirm its fixed love to hear it. |
Ive tested and confirmed that the newest update to docker-ce (25.0.1) has resolved the above issues for me |
Can also confirm 25.0.1 of docker-ce resolves the issue. I think this can be closed as it’s not a watchtower specific issue regardless. |
Describe the bug
Watchguard has been keeping my containers up to date for years. Today I installed an update to Docker, and when Watchtower attempted to update two of my containers on the host network, it failed with the following error:
invalid config for network host: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks
These were both created via docker-compose with network_mode set to host
Steps to reproduce
Make Watchtower attempt to update a container on the host network.
Expected behavior
New container is created successfully.
Screenshots
No response
Environment
Your logs
Additional context
No response
The text was updated successfully, but these errors were encountered: