Skip to content

A python script to pull images from a Docker repository without installing Docker

Notifications You must be signed in to change notification settings

sdenel/docker-pull-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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

About

A python script to pull images from a Docker repository without installing Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published