Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker cannot remove network that already exists

Tags:

docker

Kind of a strange situation - there's a network "omni_platform" and I cannot create it, however when I try to delete the network - Docker says it doesn't exist.

$ docker network create -d bridge omni_platform
Error response from daemon: network with name omni_platform already exists

$ docker network rm omni_platform
Error response from daemon: network s8gh5qljyaxyvjeespfsz86gn not found

Any help is appreciated thanks :)

like image 879
Neekoy Avatar asked Jun 14 '26 06:06

Neekoy


1 Answers

First, restart docker with this command:

 Service docker restart

Second, list all networks which are already created. I guess the command is:

  docker network ls

Or

  docker network ps

Then you find ID of the network you want to delete and remove it with this:

   docker network rm ID

Hope it was helpful.

like image 117
M_Gh Avatar answered Jun 17 '26 02:06

M_Gh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!