Docker
Docker : 도커 이미지 - 도커 허브에 이미지 배포하기
파란크리스마스
2024. 3. 23. 22:18
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