Skip to content

rsampaio/docker-graphtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-graphtool

Command line to manage Docker image layers.

Install

Requires:

  • godep
  • docker
go get -d github.com/rsampaio/docker-graphtool
cd $GOPATH/src/github.com/rsampaio/docker-graphtool
make

Running

Usage:
  dg mount [--options=<mount_options>] [<image>] [<dest>]
  dg umount [--force] <temp_image>
  dg bundle <image> <file.tar>

Example usage:

$ docker pull centos:7
$ dg mount centos:7 /tmp/centos

If you are in a systemd distro, like Arch:

$ systemd-nspawn -D /tmp/centos /bin/bash
# yum -y install systemd
# ^D
$ systemd-nspawn --boot -D /tmp/centos
...systemd init messages...

You can also export a bundle from a docker image:

$ docker pull ghost
$ dg bundle ghost ghost.tar

Run with runc:

$ mkdir -p ghost
$ tar -C ghost xvf ghost.tar
$ cd ghost
~/ghost $ runc start
/ #

About

Tool to mount docker images using the docker graphdrivers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published