모든 자동 재시작 컨테이너를 비활성화

docker update --restart=no 
$(docker ps -a -q)

단일 컨테이너를 다시 시작하지 않으려면 다음을 사용

docker update --restart=no the-container-name 또는 ID

docker-compose를 사용하는 경우

restart: "no"
restart: always
restart: on-failure
restart: unless-stopped

restart: always

실행하고 있는 서비스 확인

docker service ls

서비스를 중지

docker service rm <service id discovered with previous command>

+ Recent posts