Skip to content

Instantly share code, notes, and snippets.

@rgl
Created January 14, 2021 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgl/57adae3defe3482f48b6973789bf3895 to your computer and use it in GitHub Desktop.
Save rgl/57adae3defe3482f48b6973789bf3895 to your computer and use it in GitHub Desktop.
skokeo

This is a quick&dirty way to get started with skopeo in Ubuntu 20.04.

Install go.

Install skopeo dependencies:

sudo apt-get install -y git-core build-essential pkg-config libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev

Install skopeo:

git clone https://github.com/containers/skopeo.git
cd skopeo
git checkout v1.2.1
make bin/skopeo
export PATH="$PATH:$PWD/bin"
skopeo --version

Inspect a local docker image:

docker pull debian:10-slim
skopeo inspect docker-daemon:debian:10-slim

Push a local docker image to a nexus-oss hosted repository:

docker login nexus.example.com:5000 # or skopeo login docker://nexus.example.com:5000
# NB you should consider removing --insecure-policy
skopeo --insecure-policy copy docker-daemon:debian:10-slim docker://nexus.example.com:5000/debian:10-slim
skopeo inspect docker://nexus.example.com:5000/debian:10-slim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment