Skip to content

Phantom docker network #1743

Closed
moby/moby
#39633
@h6w

Description

@h6w

I've created a docker network with a -o parent= option, and then removed it and rebooted the machine, and now I cannot add the network back. Instead I get the error:

Error response from daemon: network dm-68eba91a51dd is already using parent interface dock_br

I checked to make sure that the network was not listed in the docker networks:

$ docker network list
NETWORK ID          NAME                DRIVER              SCOPE
05e0883e847d        bridge              bridge              local
ae994acdf4df        host                host                local
c5389bbc6e14        none                null                local

I tried again removing the non-existent docker network:

$ docker network rm docker_int_net
Error response from daemon: network docker_int_net not found
$ docker network prune
WARNING! This will remove all networks not used by at least one container.
Are you sure you want to continue? [y/N] y
$

And I tried again:

$ docker network create -d macvlan     --subnet=192.168.0.0/16     --gateway=192.168.40.252      -o 
parent=dock_br docker_int_net
Error response from daemon: network dm-68eba91a51dd is already using parent interface dock_br

How could a network exist in the network test but not be listed in the network list? How do I reset it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions