Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Migrate from Boot2Docker to Docker Toolbox

DZone's Guide to

How to Migrate from Boot2Docker to Docker Toolbox

Learn the advantages of the newly launched Docker Toolbox, and how to migrate existing Boot2Docker containers to Toolbox.

· DevOps Zone
Free Resource

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

This article represents quick information on how to migrate existing Boot2Docker containers and images to newly launched Docker Toolbox that was officially announced on Docker’s blog. Please feel free to comment/suggest if I missed to mention one or more important points. 

Following are the key points described later in this article:

  • What is Docker Toolbox?
  • Migration to Docker Toolbox

What is Docker Toolbox?

With the development community talking about issues related with getting up and started with Dockers and need for one-click install of Docker, Docker finally came out with something called Docker Toolbox. This comes with following:

  • Docker client
  • Docker kitematic
  • Docker Machine
  • Virtualbox
  • Docker Composer (Mac only)

Docker toolbox uses Machine and VirtualBox to create an Engine in a VM to run your containers. On top of that VM, one can then use the Docker client, Compose, and Kitematic to run containers.

Migration to Docker Toolbox

Following are instructions on how to migrate Boot2Docker-vm containers and images to a new Docker Toolbox Docker machine.

  1. Migration to Docker Toolbox: If you already have been working with boot2docker-vm virtual machine and want to migrate in an easy manner, go ahead and download Docker-Toolbox from this page: Docker Toolbox. Once downloaded, double-click on the installer and it will start installing Docker-Toolbox. As part of the installation, it will ask whether you want to migrate existing boot2docker-vm containers and images to this new docker machine. Say yes, and you are good to go.

  2. Make sure that existing boot2docker-vm is powered off: I tried to install Docker-Toolbox when existing boot2docker-vm was on and both installation got corrupted.

Alternatively, just do the installation of Docker-Toolbox with boot2docker-vm powered off and, once installation is completed, execute the following command from Docker CLI terminal:


docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm dev


Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

Topics:
devops ,docker

Published at DZone with permission of Ajitesh Kumar. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}