-
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
Can't remove default network podman #16890
Comments
Why do you want to remove the default network? That network is in memory it is impossible to remove it. |
all the containers will communicate trough unix socket (instead of tcp), I don't want the default network because I might have conflicts with the defined IP of my host, I would need to write some logic to detect the IP defined on my hosts and change the default network to a different CIDR (what would be not reliable). |
But docker does not allow to remove it via |
Right, but if we create /etc/docker/daemon.json it won't create the default bridge network, the docker uses none. eg: of one docker with bridge none defined at daemon.json: "NetworkSettings": { And look the op from network ls from docker at the same host: docker network lsNETWORK ID NAME DRIVER SCOPE Since podman is daemonless we should have a way to either remove it or disable if not required like docker does imo. |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 This is waiting on you. |
Adding a config option to not create the default network is possible but what is the point of it? In principle it is possible to have a option to not create a config for the default network but that will likely result in a big mess when implementing as we would need to change the actual defaults everywhere. Also looks like docker does not handle it correctly either:
So it still uses the bridge name as network name despite bridge not existing. That seems terribly confusing to me. |
|
I still do not really understand the use case for this. |
@Luap99 I agree with you. Sorry that I misunderstood about the |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
/network
Description
Can't remove default network podman
Steps to reproduce the issue:
obtain the default network via
podman network ls
Assuming you have only 1 network, try to remove it:
podman network rm from Initial checkin #1
Describe the results you received:
Error: default network podman cannot be removed
Describe the results you expected:
I should be able to either remove it, or set a configuration like we can do via docker to disable it, eg:
cat /etc/docker/daemon.json
{
"bridge": "none"
}
Additional information you deem important (e.g. issue happens only occasionally):
Any time
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
physical env, but it shouldn't be relevant here
The text was updated successfully, but these errors were encountered: