Simple and straight forward wrapper for container registry API.
Project description
A python script to pull images from a Docker repository without installing Docker and its daemon.
The script creates a cache directory (~/.docker-pull-layers-cache) to store layers already downloaded.
Installation
# docker-pull
curl https://raw.githubusercontent.com/sdenel/docker-pull/master/docker-pull -o docker-pull
chmod +x docker-pull
# docker-push
curl https://raw.githubusercontent.com/sdenel/docker-pull/master/docker-push -o docker-push
chmod +x docker-push
Example
./docker-pull index.docker.io/library/alpine alpine
LOADED_IMAGE_ID=`docker load < alpine | tail -n 1 | cut -d ':' -f 3`
docker run $LOADED_IMAGE_ID echo "Hello world"
Ressources
- Description of the img format: https://github.com/moby/moby/blob/master/image/spec/v1.2.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crpy-0.0.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
crpy-0.0.0-py3-none-any.whl
(13.6 kB
view hashes)