Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active August 29, 2015 14:06
Show Gist options
  • Save dasgoll/bdeffc326410275642c4 to your computer and use it in GitHub Desktop.
Save dasgoll/bdeffc326410275642c4 to your computer and use it in GitHub Desktop.
docker host1 = Centos
docker host2 = Ubuntu
docker pull busybox:latest
docker run -it --name busygoll -h busygoll busybox:latest /bin/bash
## do your customizations
docker commit 7d784b1e3c78 busygoll:latest
docker save 6c4412b1e31e > busygoll.tar# on docker host1
docker load < busygoll.tar # on docker host2
root@ubuntu:/home/goll# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
<none> <none> 9147fac05179 6 minutes ago 2.433 MB
root@ubuntu:/home/goll# docker tag 9147fac05179 goll/busygoll
## or docker tag 9147fac05179 busygoll
root@ubuntu:/home/goll# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
goll/busygoll latest 9147fac05179 6 minutes ago 2.433 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment