Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@xoxys
Comment options

@Luap99
Comment options

@Luap99
Comment options

@xoxys
Comment options

Answer selected by xoxys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants