OneBite.Dev - Coding blog in a bite size

solve cannot start service docker network not found

Simple docker step by step how to solve error cannot start service docker network not found

A Simple docker step by step how to solve error cannot start service docker network not found

Cause of this error

It’s probably due to previous docker-compose running (old service) that not yet turned off. But some of the service has been killed.

Solution

Run

docker-compose down --remove-orphans

To turn off the current docker-compose while removing all orphans.

Then you can run the container normally again

docker-compose up build
docker