티스토리 뷰

728x90

출처

도커 허브에 Repository 생성

Docker 허브 로그인

orangepi@orangepi3b:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
 
Username: test@test.com
Password: 
WARNING! Your password will be stored unencrypted in /home/orangepi/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
 
Login Succeeded

Docker 이미지 조회

orangepi@orangepi3b:~$ docker images
REPOSITORY         TAG          IMAGE ID       CREATED          SIZE
oracle/db          19.19-EE     73ebf0277483   7 minutes ago    5.89GB
oraclelinux        8-slim-19c   5ff094295093   17 minutes ago   711MB
custom/mysql       latest       b5783eb91fbe   2 weeks ago      638MB
mysql_container2   latest       09904b463513   2 weeks ago      638MB
arm64v8/mysql      latest       e68e2614955c   2 months ago     638MB

Docker 이미지 태그 지정

실제로는 동일한 이미지 ID를 공유하고 있으며 동일한 이미지를 참조

orangepi@orangepi3b:~$ docker image tag 73ebf0277483 bluexmas/aarch64_oracle_db_19

Docker 이미지 조회

orangepi@orangepi3b:~$ docker images
REPOSITORY                      TAG          IMAGE ID       CREATED          SIZE
bluexmas/aarch64_oracle_db_19   latest       73ebf0277483   8 minutes ago    5.89GB
oracle/db                       19.19-EE     73ebf0277483   8 minutes ago    5.89GB
oraclelinux                     8-slim-19c   5ff094295093   18 minutes ago   711MB
custom/mysql                    latest       b5783eb91fbe   2 weeks ago      638MB
mysql_container2                latest       09904b463513   2 weeks ago      638MB
arm64v8/mysql                   latest       e68e2614955c   2 months ago     638MB

Docker 이미지 도커 허브 저장소에 업로드

orangepi@orangepi3b:~$ docker push bluexmas/aarch64_oracle_db_19
Using default tag: latest
The push refers to repository [docker.io/bluexmas/aarch64_oracle_db_19]
5f70bf18a086: Layer already exists 
a86cfe63678b: Pushed 
b9d8e48a7e13: Pushed 
aa3712efcfb0: Pushed 
49d67b2b3ffc: Pushed 
eb1a67ca2edd: Pushed 
3345ec528d8c: Pushed 
783b508a4793: Pushed 
900d85c165c2: Layer already exists 
efa1a2ef5c15: Layer already exists 
latest: digest: sha256:276c6358c179efab39be868b6a8368df57c29210f0370c2e2cec9017f7b54dc2 size: 2417

 

댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함