Last active
March 9, 2020 06:37
-
-
Save HwDhyeon/78aec8da248afee3dbfb59ba36eeea5b to your computer and use it in GitHub Desktop.
DockerHub에 이미지 푸시하고 풀 받기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DockerHub 로그인 | |
docker login --username {Dockerhub Username} --password {DockerHub Access token} | |
(= docker login -u {Dockerhub Username} -p {DockerHub Access token}) | |
# 컨테이너를 이미지화 해서 DockerHub에 커밋 | |
docker commit {Container Name} {DockerHub Username}/{Image Name}:{Tag (e.g., latest)} | |
# DockerHub에 이미지 푸시 | |
docker push {DockerHub Username}/{Image Name}:{Tag (e.g., latest)} | |
# DockerHub에서 이미지 풀 | |
docker pull {DockerHub Username}/{Image Name}:{Tag (e.g., latest)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment