Skip to content

Instantly share code, notes, and snippets.

@drnic
Created February 10, 2014 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drnic/8910511 to your computer and use it in GitHub Desktop.
Save drnic/8910511 to your computer and use it in GitHub Desktop.

Run docker server on a fresh folder:

docker -d -g /home/core/docker-build/ -p /var/run/docker-build.pid -H tcp://127.0.0.1:5011

In the gnatsd-dockerfile project:

docker -H localhost:5011 build -t localhost:5011/gnatsd .

Now, the docker folder can be converted to a tarball:

$ time tar cvfz docker-gnatsd.tgz docker-build/
...
real	1m50.452s
user	0m48.342s
sys	0m13.691s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment