pe4nut1989 Posted February 6, 2023 Share Posted February 6, 2023 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 Quote Link to comment
JonathanM Posted February 7, 2023 Share Posted February 7, 2023 Pretty sure if you delete your docker.img and recreate it, the custom networks will be gone. Adding all your containers back is easy, just go to the apps tab, previous apps on the left, select everything you want reinstalled, and hit install selected applications. Quote Link to comment
Solution tjb_altf4 Posted February 8, 2023 Solution Share Posted February 8, 2023 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:~# 2 Quote Link to comment
pe4nut1989 Posted February 20, 2023 Author Share Posted February 20, 2023 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 . Quote Link to comment
Recommended Posts
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.