๐Ÿฅ

[docker] ๊ฐ„๋‹จํ•œ ๋ช…๋ น์–ด ์ •๋ฆฌ ๋ณธ๋ฌธ

linux

[docker] ๊ฐ„๋‹จํ•œ ๋ช…๋ น์–ด ์ •๋ฆฌ

•8• 2023. 6. 30. 10:07

1. docker ๋กœ๊ทธ์ธ

docker login $dockerhub_address -u $my_id -p $my_password

 

2. docker pull

docker pull $docker_image:$tag

# ex
docker pull quay.io/prometheus/statsd-exporter:v0.22.8

 

3. docker image ํ™•์ธ

์œ„์—์„œ pull ํ•œ ํŒจํ‚ค์ง€๊ฐ€ ํ™•์ธ๋œ๋‹ค.

[root@test-server /]# docker images
REPOSITORY                                                  TAG                          IMAGE ID       CREATED         SIZE
quay.io/prometheus/statsd-exporter                          v0.22.8                      601019e98ed2   9 months ago    17.1MB

 

4. tag ์„ค์ •(๋ณ€๊ฒฝ)

private registry์— ์˜ฌ๋ฆด ๋•Œ์—๋„ tag ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๋‹ค.

 docker tag $repository:$tag1 $repository:$tag2

 

5.  docker push

docker push $repository:$tag

https://quackstudy.tistory.com/entry/docker-%EC%B6%94%EA%B0%80-%EB%82%B4%EC%9A%A9