What is the difference between Docker and Virtual Box?

8

2

I have used Virtual Box alot on my mac for Linux images. What would be the advantage of moving to Docker? So I would like to know what the difference between Docker and Virtual Box is?

Yazz.com

Posted 2015-06-02T20:05:21.713

Reputation: 2 813

Answers

3

Docker is an application virtualisation tool. VirtualBox is a Virtual Machine tool.

VB simulates an entire hardware environment whereas Docker isolates the reads/writes of the enclosed application from the rest of the OS.

The overheads of a whole VM can be considerable whereas Docker apps don't need to replicate all of the OS so, in theory, you may be able to get more out of your host environment.

On the other hand, it can be very tricky to get applications to play nicely together with Docker due to the application isolation.

Also, Docker does not yet run on Windows (that is due soon though) so there are platform limitations too.

Julian Knight

Posted 2015-06-02T20:05:21.713

Reputation: 13 389

1Docker can also use full virtualization. Depends on the engine. – Daniel B – 2015-06-02T20:11:27.433

Can you explain please? Which engine gives a full VM with Docker? – Julian Knight – 2015-06-02T20:13:03.870

Driver was the correct word. Anyway, take a look. I though it would’ve progressed further by now, though.

– Daniel B – 2015-06-02T20:16:51.590

Hmm, perhaps you over stated then? In truth you could say that it may support it in the future, it doesn't support it now. – Julian Knight – 2015-06-02T20:20:45.933

@DanielB, the GitHub repo you linked to is to the Docker Machine project, which is different from Docker the container technology. Machine is a tool for managing VMs where Docker containers would be run.

– heavyd – 2015-06-02T20:55:12.237