-
At the moment, podman does not seem to be able to automatically update existing podman networks after modifying the corresponding After |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
It does not silently fail, it does exactly what is asked. Create or ignore if it already exists. The problem is that networks cannot be bound to the same systemd life cycle as containers. A single network can be used by multiple containers so we cannot really remove it after all containers are stopped as this would be very racy. Manually stopping all containers that use that network then removing the network and then restart the container units again should make it work but is not very nice. I don't think there is a good solution for this. |
Beta Was this translation helpful? Give feedback.
It does not silently fail, it does exactly what is asked. Create or ignore if it already exists.
The problem is that networks cannot be bound to the same systemd life cycle as containers. A single network can be used by multiple containers so we cannot really remove it after all containers are stopped as this would be very racy.
Manually stopping all containers that use that network then removing the network and then restart the container units again should make it work but is not very nice. I don't think there is a good solution for this.