Hello. Please explain, how to move exists images and containers from virtualbox to new docker for mac VM?
For images you would first make sure that youâre using virtualbox with docker and use âdocker saveâ to save your images to tar files. You would then turn off virtualbox and turn on docker for mac and make sure youâre now using that with docker and then âdocker loadâ them.
Thank you for your answer, but question about containers is open! Here https://beta.docker.com/docs/mac/getting-started/#what-to-know-before-you-install doc say It copies containers and images from your local default machine (if one exists) to the new Docker for Mac xhyve VM
Agreed. Docker: Accelerated Container Application Development describes
Installing Docker for Mac does not affect machines you created with
Docker Machine. The install offers to copy containers and images from
your local default machine (if one exists) to the new Docker for Mac xhyve VM. If chosen, content from default is copied to the new Docker for Mac xhyve VM, and your original default machine is kept as is.
This wasnât offered for me and maybe itâs just not ready yet however instructions how to do this manually would help and even if it is really in the end only docker save/load.
+1
My Virtualbox VM is not called default
, so nothing was copied. It would be great if there were some instructions on how to copy stuff from old VMs to xhyve.
Mine actually is called defaultâŠ
When istalling it should be asking if you want to copy your existing images and containers. I noticed that the progresbar is on 0% all the time when copying. But it works. I made clean install with beta 13.1 installer.
Exactly. It should but it didnât. And is there a way to kick this off manually
During the âDocker for Macâ installation, I wasnât offered to copy/move machine/images.
My docker machine is called default but uses vmwarefusion as its driver.
I believe using vmwarefusion instead of virtualbox as machineâs driver is the problem.
+1 I would love to know how to kick this off manually (my VM is called âdocker-vmâ, not âdefaultâ).
You can use https://gist.github.com/mmrko/78a071d0ff2062cb199a852e2469586f to manually grab images from your Docker Machine and load them into your new Docker for Mac setup. The rundown would be something as follows:
- Point the Docker daemon to your Docker Machine:
eval "$(docker-machine env your-docker-machine-name-goes-here)
" - Grab the images from your Docker Machine (by running the script referred to above):
./save-load-images.sh save ./my-images
- (Run
docker-machine upgrade your-docker-machine-name-goes-here
if you see a prompt saying the Docker client and server versions do not match) - Make the Docker CLI point back to your newly installed Docker for Mac by unsetting the
DOCKER
env variables (which were set by theeval
in step 1.) - Load the images into Docker for Mac:
./save-load-images.sh load ./my-images