Docker Hub Registry 란?
https://hub.docker.com/_/registry
Docker의 공식 레지스트리는 Docker 이미지를 저장하고 배포할 수 있는 서버 역할을 합니다. 사용자는 이 레지스트리를 사용해 자신만의 이미지를 푸시(push)하고 풀(pull)할 수 있습니다. 이 이미지는 다양한 환경에서 쉽게 배포되고 실행될 수 있습니다. 또한, 레지스트리는 프라이빗 또는 퍼블릭 설정이 가능하며, 다양한 인증 및 접근 제어 옵션을 제공합니다. 로컬 환경에서 사용할 수 있도록 설정할 수도 있습니다.
Docker Hub Registry 사용 방법
Registry 컨테이너 실행
- Docker에서 기본 제공하는 registry 이미지를 사용하여 로컬에서 Docker Registry를 실행
docker run -d -p 5000:5000 --restart always --name registry registry:2
이미지 태그 변경
- Docker Registry에 맞는 URL로 이미지의 태그를 변경
docker tag <로컬이미지이름>:<태그> localhost:5000/<이미지이름>:<태그>
docker tag myapp:latest localhost:5000/myapp:latest
이미지 푸시(Push)
- 개인 레지스트리에 이미지를 업로드
docker push localhost:5000/<이미지이름>:<태그>
docker push localhost:5000/myapp:latest
이미지 다운로드(Pull)
- 다른 시스템에서 해당 이미지를 다운로드
docker pull localhost:5000/<이미지이름>:<태그>
'개발' 카테고리의 다른 글
Gitlab Merge Request, Merge options 옵션 설명 (0) | 2024.07.11 |
---|---|
React Hook 종류 정리 (1) | 2024.07.03 |
Git 로컬 Branch, 원격 Branch 서로 연결 하기 (0) | 2024.02.06 |
리눅스 nodejs 최신 버전 설치하기 (0) | 2024.02.05 |
React 전역 상태 관리 라이브러리 Zustand 소개 (0) | 2024.02.01 |