컨테이너 보관창고 - 실습편

deveopser·2022년 11월 23일
0

Docker

목록 보기
7/15

hub.docker.com에 컨테이너 올리고,다운로드받기

docker search httpd
docker pull httpd
docker images

docker tag httpd:latest 도커Username/httpd:latest
docker push 도커Username/httpd:latest

Private Registry 운영하기

내부망을 사용하는 곳이나, 사내에서 긴밀하게 사용하고 싶을때는 Private Registry 운영해야한다.
docker run -d -p 5000:5000 --restart always --name registry registry:2
docker ps
docker tag httpd:latest localhost:5000/httpd:latest
docker images localhost:5000/httpd
docker push localhost:5000/httpd:latest

출처 : https://www.youtube.com/watch?v=bQ6XxI0Ep_Q&list=PLApuRlvrZKogb78kKq1wRvrjg1VMwYrvi&index=14

profile
부끄럽게 공부하지말자.

0개의 댓글