How to reproduce:
Have docker container using a wireguard network interface, in my case wg1.
Stop all docker containers using wg1.
Delete wg1 from VPN settings.
Create/import new wg1.
Attempt to restart docker container.
It gives an error that the container doesn't exist.
You can fix this broken state by editing the container template (any superficial change such as name) and hitting save.
My VPN provider requires generating a new wireguard config every few weeks. IMO, recreating wg1 should not break containers. How to fix them is not obvious, and I had gone through the pain of deleting and recreating all my containers from scratch before figuring it out. I would hate to see others get frustrated by this.
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.