포스트

Docker 컨테이너 생성 삭제 실행 (build/run/push/pull)

Docker build

docker build -t 계정명/이미지명:태그명 .

1
docker build -t juing/jupyter:latest .

Docker image remove

docker rmi -f 이미지ID

1
docker rmi -f abcdefghijklmn

Docker run

docker run -it 계정명/이미지명:태그명

1
2
3
4
5
6
docker run -it juing/test:latest 
docker run  --gpus all -it juing/jupyter:latest 
docker run  --restart always -it juing/test:latest 
docker run -v "$PWD":/home/jovyan/work -it juing/test:latest 
docker run -p 1234:1234 -it juing/test:latest 
docker run -e JUPYTER_ENABLE_LAB=yes -it juing/test:latest 

Docker login

docker login -u 유저명

1
docker login -u juing

Docker push

docker push 계정명/이미지명:태그명

1
docker push juing/jupyter:latest

Docker pull

1
docker pull juing/jupyter:latest
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.