virtual machine - Copy Docker container from boot2docker under OS X -


i have boot2docker running on os x 10.10.

i used docker install conceptnet5, 50gb big database takes days download location.

now, requested ubuntu vm conceptnet5 running on in docker container me.

so, avoid downloading again, wondered if there way transfer conceptnet5's container boot2docker newly created ubuntu vm.

here docker container i'm using.

you work save , load command.

the save command produces tarred repository of image. contains parent layers, , tags.

$ docker save myimage -o myimage.tar # or better, gzip using unix pipes $ docker save myimage | gzip > myimage.tar.gz 

now have tarball layer , metadata can pass around, offline, usb keys & stuff.

to load back, it's load command. load command work following compression algorithm : gzip, bzip2 , xz.

$ docker load -i myimage.tar.gz # or pipes $ docker load < myimage.tar.gz 

it's little bit easier running private registry, both works well.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -