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