-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add --if-not-exists option to podman network create #8987
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If `--if-not-exists` is set `podman network create` will not error if the a network with the same given name already exists. This option is only supported for local podman client. Supporting the remote client would require changes in the api endpoint. This option can be used as `ExecStartPre` command in a systemd service file. see containers#8842 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
91fbe78
to
1910185
Compare
Bikeshedding a little, but I hate options with "-" embeded in them. --ignore? |
Currently we have commands podman image exists We should add Would that be better, then you could make a command like |
Container/Pod creation also has a |
@vrothberg Replace behaviour is not wanted. see #8842 |
@rhatdan I agree |
+1 |
podman network exists PR #9021 |
If
--if-not-exists
is setpodman network create
will not errorif the a network with the same given name already exists.
This option is only supported for local podman client. Supporting
the remote client would require changes in the api endpoint.
This option can be used as
ExecStartPre
command in a systemdservice file. see #8842