Jump to content

Custom Networks


Go to solution Solved by tjb_altf4,

Recommended Posts

hello Unraid community. this is probly a question that has been answered before and i am sorry i can't find the answer while searching but i am looking to clean up my install. i have made quite a few custom networks and now i am looking to delete/remove them. i have tried stopping my docker services and going to network settings and removing them from the routing table. but they don't seem to ever get removed from there so i am probly doing that wrong  can someone point me in the right direction to remove all the networks except for the default ones.  thanks

Link to comment
  • Solution

There is no GUI interface for creating or deleting docker networks (I'm assuming this is what you are referring to).

Instead you need to go into the CLI and type: docker network rm <my-network>

Where <my-network> is the name of your network to be removed, this can also be stacked if you like e.g. docker network rm <my-network1> <my-network2> <my-network3>

 

If you don't know what networks you have, type docker network ls

The Unraid default docker networks are br0 (and br1, brx etc for each interface), bridge, host, none and wg0

 

Note that any containers still configured to use that network will fail to start, but you can adjust this in the docker settings.

If a containers is still running and using one of these networks the command will likely fail to remove it.

 

Example:

root@fortytwo:~# docker network ls
NETWORK ID     NAME                     DRIVER    SCOPE
f65acde003bd   br0                      ipvlan    local
8ba0d062c51e   br1                      ipvlan    local
b410faa93e33   bridge                   bridge    local
f14e96c2b3e7   go-spacemesh_spacemesh   bridge    local
5974bf6e7616   host                     host      local
6ef32c3f7c35   none                     null      local
d51a9a1ed7b1   pihole                   bridge    local
6c61ba876986   proxynet                 bridge    local
1fd749e6cfc9   wg0                      bridge    local

root@fortytwo:~# docker network rm go-spacemesh_spacemesh
go-spacemesh_spacemesh

root@fortytwo:~# docker network ls
NETWORK ID     NAME       DRIVER    SCOPE
f65acde003bd   br0        ipvlan    local
8ba0d062c51e   br1        ipvlan    local
b410faa93e33   bridge     bridge    local
5974bf6e7616   host       host      local
6ef32c3f7c35   none       null      local
d51a9a1ed7b1   pihole     bridge    local
6c61ba876986   proxynet   bridge    local
1fd749e6cfc9   wg0        bridge    local

root@fortytwo:~# 

 

  • Thanks 2
Link to comment
  • 2 weeks later...
On 2/7/2023 at 9:49 PM, tjb_altf4 said:

There is no GUI interface for creating or deleting docker networks (I'm assuming this is what you are referring to).

Instead you need to go into the CLI and type: docker network rm <my-network>

Where <my-network> is the name of your network to be removed, this can also be stacked if you like e.g. docker network rm <my-network1> <my-network2> <my-network3>

 

If you don't know what networks you have, type docker network ls

The Unraid default docker networks are br0 (and br1, brx etc for each interface), bridge, host, none and wg0

 

Note that any containers still configured to use that network will fail to start, but you can adjust this in the docker settings.

If a containers is still running and using one of these networks the command will likely fail to remove it.

 

Example:

root@fortytwo:~# docker network ls
NETWORK ID     NAME                     DRIVER    SCOPE
f65acde003bd   br0                      ipvlan    local
8ba0d062c51e   br1                      ipvlan    local
b410faa93e33   bridge                   bridge    local
f14e96c2b3e7   go-spacemesh_spacemesh   bridge    local
5974bf6e7616   host                     host      local
6ef32c3f7c35   none                     null      local
d51a9a1ed7b1   pihole                   bridge    local
6c61ba876986   proxynet                 bridge    local
1fd749e6cfc9   wg0                      bridge    local

root@fortytwo:~# docker network rm go-spacemesh_spacemesh
go-spacemesh_spacemesh

root@fortytwo:~# docker network ls
NETWORK ID     NAME       DRIVER    SCOPE
f65acde003bd   br0        ipvlan    local
8ba0d062c51e   br1        ipvlan    local
b410faa93e33   bridge     bridge    local
5974bf6e7616   host       host      local
6ef32c3f7c35   none       null      local
d51a9a1ed7b1   pihole     bridge    local
6c61ba876986   proxynet   bridge    local
1fd749e6cfc9   wg0        bridge    local

root@fortytwo:~# 

 

thank you for that help   that fixed me .

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...