Skip to content

Instantly share code, notes, and snippets.

@bastjan
Last active April 21, 2020 12:49
Show Gist options
  • Save bastjan/93b271569f21e3fe1773f04dcb05d6aa to your computer and use it in GitHub Desktop.
Save bastjan/93b271569f21e3fe1773f04dcb05d6aa to your computer and use it in GitHub Desktop.
docker without docker

Docker Without Docker

Commands to use where no docker is available e.g. in a container.

https://github.com/google/go-containerregistry/tree/master/cmd/crane

docker import jail.tar jail:latest

crane append -f jail.tar --new_tag jail:latest  --output jail-latest.tar
# crane push jail-latest.tar registry.example.com/library/jail:latest

Copy Between Registries / Add Tags

crane cp registry.example.com/library/jail:1 registry.example.com/library/jail:latest
# OR
crane tag registry.example.com/library/jail:1 latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment