Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker error: Cannot start service ...: network 7808732465bd529e6f20e4071115218b2826f198f8cb10c3899de527c3b637e6 not found

When starting a docker container (not developed by me), docker says a network has not been found.

Does this mean the problem is within the container itself (so only the developer can fix it), or is it possible to change some network configuration to fix this?

like image 722
user118967 Avatar asked Nov 17 '18 01:11

user118967


2 Answers

I'm assuming you're using docker-compose and seeing this error. I'd recommend

docker-compose up --force-recreate <name>

That should recreate the containers as well as supporting services such as the network in question (it will likely create a new network).

like image 169
Drazen Urch Avatar answered Oct 07 '22 02:10

Drazen Urch


shutdown properly first, then restart

docker-compose down
docker-compose up
like image 107
John V Avatar answered Oct 07 '22 02:10

John V