Docker - DockerHub

2경빈·2025년 5월 11일

Docker

목록 보기
4/6

DockerHub에 comit + push하기

  1. ubuntu 컨테이너에서 작업을 함 (vim 설치 등..)
  2. 그 상태를 새로운 이미지로 저장 (commit)
  3. 그 이미지를 Docker Hub에 업로드 (push)
root@xxx:/# apt install vim
root@xxx:/# cd home
root@xxx:/home# cd ubuntu
root@xxx:/home/ubuntu# vi hello
root@xxx:/home/ubuntu# ls
root@xxx:/home/ubuntu# exit
C:\Users\lkb>docker commit ad0650 userName/vim-ubuntu:1.0
C:\Users\lkb>docker push userName/vim-ubuntu:1.0

profile
eggs before hatching

0개의 댓글