Use boot2docker or native docker boot?

I would like to use docker in Linux environment, so I have 2 options:

I think the VM method is easier to install, but you may have difficulty exchanging data between your laptop and the docker container (you need to install the guest add-on in virualbox, for example ...)

On the other hand, the native installation seems less simple, but I think you get some performance and data exchange easier ...

So, I would like to know, for you, what are the advantages / disadvantages of the two methods?

What was your choice and why?

Thanks:)

+6
source share
1 answer

Embedded Docker Installation

  • If you are already on Linux, there is simply no need for another tool and layer, such as VM
  • Better performance (since you are not in the virtual machine, but on your machine)
  • This is pretty easy, for example. to install Docker on Ubuntu 14 just run curl -sSL https://get.docker.io/ubuntu/ | sudo sh curl -sSL https://get.docker.io/ubuntu/ | sudo sh

VM / Boot2Docker

  • Docker will not "pollute" your system - if you no longer want to use Docker, just throw away your virtual machine, nothing will remain on your system.

If you are already on Linux, I would just install Docker and you're done.

+9
source

Source: https://habr.com/ru/post/973145/


All Articles