Press "Enter" to skip to content

[태그:] 이미지

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

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

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

# docker update --restart=always <container-id>
# 예)
# docker update --restart=always dcciidlkasjdflk94
# docker update --restart=always <container-id> # 예) # docker update --restart=always dcciidlkasjdflk94
# docker update --restart=always <container-id>

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