WHEREIS

네퉠이 부분적으로 막힌 상황에서 요긴하게 사용 가능할 듯

스크립트 : https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh

 

[root@template-cent7 /tmp]# sh tt.sh 
usage: tt.sh dir image[:tag][@digest] ...
       tt.sh /tmp/old-hello-world hello-world:latest@sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7

 


[root@template-cent7 /tmp]# sh tt.sh /tmp/job/ centos:latest
Downloading 'library/centos:latest@latest' (1 layers)...
skipping existing a90615670311

Download of images into '/tmp/job/' complete.
Use something like the following to load the result into a Docker daemon:
  tar -cC '/tmp/job/' . | docker load

 

 

 

참고 사이트 :

https://devops.stackexchange.com/questions/2731/downloading-docker-images-from-docker-hub-without-using-docker

 

https://vsoch.github.io/2016/dockerapi/

 

이 글을 공유합시다

facebook twitter kakaoTalk kakaostory naver band
loading