Docker Registry

김덕근·2023년 10월 5일
0

Docker

목록 보기
5/5

Registry : 컨테이너 이미지를 저장하는 저장소
Docker Hub : hub.docker.com
Private Registry : 사내의 컨테이너 저장소


public repository

docker tag httpd:latest username/httpd:latest
docker push username/httpd:latest

Private Repository

docker run -d -p 5000:5000 --restart always --name registry registry:2
docker pull ubuntu
docker tag ubuntu localhost:5000/ubuntu
docker push localhost:5000/ubuntu
  • image repository
localhost:5000/ubuntu:18.04
docker.example.com:5000/ubuntu:18.04

docker registry 경로

cd /var/lib/docker/volumes/컨테이너명/_data/docker/registry/v2/repositories/
profile
안녕하세요!

0개의 댓글