Migrate from Boot2Docker to Machine
Migrate from Boot2Docker to Docker Machine
If you were using Boot2Docker previously, you have a pre-existing Docker boot2docker-vm
VM on your local system. To allow Docker Machine to manage this older VM, you must migrate it.
Open a terminal or the Docker CLI on your system.
-
Type the following command.
$ docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm docker-vm
Use the
docker-machine
command to interact with the migrated VM.
Subcommand comparison
The docker-machine
subcommands are slightly different than the boot2docker
subcommands. The table below lists the equivalent docker-machine
subcommand and what it does:
boot2docker | docker-machine |
|
---|