Advertisement
wagz

Skopeo docker archive

Sep 9th, 2021
1,147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1.  
  2. One working solution is to use skopeo, a CLI tool for working with remote images registries.
  3.  
  4. An image in environment X is directly saved to disk with the following command:
  5.  
  6. skopeo copy \
  7.   docker://docker.artifactory-x.example.com/busybox:latest \
  8.   docker-archive:./busybox:latest.tar
  9. An image file in environment Y is directly uploaded to Artifactory with the following command:
  10.  
  11. skopeo copy \
  12.   --dest-creds myusername:mypassword \
  13.   docker-archive:./busybox:latest.tar \
  14.   docker://docker.artifactory-y.example.com/busybox:latest
  15. The image does not need to be explicitly retagged to change the repository prefix.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement