Disable autostart of docker-compose project

后端 未结 4 2105
青春惊慌失措
青春惊慌失措 2021-02-06 21:11

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

4条回答
  •  长情又很酷
    2021-02-06 22:01

    Today I had the same issue that all containers are started when I boot my dev laptop, as restart: always was set in the .yml files.

    As I don't want to touch the .yml files, I just found out (thx Bobby) how to alter this setting by:

    docker update --restart=no 
    

提交回复
热议问题