Press "Enter" to skip to content

리부팅시 docker 이미지 자동 실행

컨테이너 올릴때 –restart-always 옵션을 넣어주면 된다.

이미 실행 한 경우에는 다음과 같이 입력한다.

# docker update --restart=always <container-id>

# 예)
# docker update --restart=always dcciidlkasjdflk94

Be First to Comment

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다