종종 여러 문제로 Docker를 재시작 해야한다. 나는 주로 아래 포스트한 내용으로 재시작한다.
https://jaehong-data.tistory.com/45
Docker, GPU 인식
일반적으로 Ubuntu server에서 docker를 사용하는, 새로운 GPU 환경에서 작업을 시작했다. 그 과정에서 잘 돌아가던 코드에서 갑자기 GPU 인식을 못하는 warning이 발생했다. 조사를 해보니, GPU 인식 문제
jaehong-data.tistory.com
재시작 방법
먼저 재시작 하고싶은 container id를 알아내자.
docker ps -a
그리고 id를 입력하여 재시작하면 끝.
docker container restart [container id]
그림 출처
https://amalgjose.com/2021/02/12/how-to-enable-auto-restart-of-a-docker-container-on-system-reboot/
How to enable auto restart of a docker container on system reboot ?
I am writing this tech snippet based on my experience of rebooting a machine where docker server is installed. My requirement was to enable auto restart of the docker container even after the syste…
amalgjose.com
'정리 조금 > Codes' 카테고리의 다른 글
[Linux] SCP File Transportation (0) | 2024.03.11 |
---|---|
[Python] Wallus Operator, := (1) | 2024.02.23 |
[Python] Package Version Check (0) | 2023.12.11 |
[Python] Image Data, Shape Transformation (0) | 2023.12.04 |
[Python] Paramiko (0) | 2023.10.25 |