I have a docker-compose project using Docker for Mac that autostarts when I boot the computer.
I usually start the project with docker-compose up -d
, but ev
Beside setting restart: unless-stopped
, remove existing containers and recreate them.
docker-compose down
docker-compose up -d
Now, it would work as expected:
docker-compose stop
sudo service docker restart
docker-compose ps
# should NOT HAVE containers running
docker-compose up -d
sudo service docker restart
docker-compose ps
# should HAVE containers running