Vagrant or Docker for creating an isolated environment?

0 votes
I use Ubuntu for development and deployment and have a need for creating an isolated environment. I am confused between Vagrant or Docker for this purpose. Can you guys help me out with this? Thank you in advance.
Sep 28, 2018 in Docker by Sophie may
• 9,850 points
36 views

1 answer to this question.

0 votes
Vagrant is basically a virtual machine manager. It let’s you script the virtual machine configuration as well as the provisioning. However, it is still a virtual machine depending on VirtualBox with a huge overhead. It requires you to have a hard drive file that can be huge, it takes a lot of ram, and performance may be not very good.

Docker on the other hand uses kernel cgroup and namespacing via LXC. It means that you are using the same kernel as the host and the same file system. You can use Dockerfile with the docker build command in order to handle the provisioning and configuration of your container. You have an example at docker docs on how to make your Dockerfile

The only reason you could want to use Vagrant is if you need to do BSD, Windows or other non-Linux development on your Ubuntu box. Otherwise, go for Docker.
answered Sep 28, 2018 by Tyrion anex
• 8,270 points

Related Questions In Docker

0 votes
1 answer

Should I use Vagrant or Docker for creating an isolated environment?

If your purpose is the isolation, I ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
48 views
0 votes
2 answers

How do I force Docker for a clean build of an image ?

You could try this inorder to clean ...READ MORE

answered Aug 6 in Docker by Sirajul
• 29,740 points
1,318 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
187 views
0 votes
1 answer

How to run an image with volume on docker for windows?

Try : declaring the volume of container mounting the ...READ MORE

answered Sep 19, 2018 in Docker by Tyrion anex
• 8,270 points
46 views
0 votes
1 answer

How to get a browsable url from Docker-for-mac or Docker-for-Windows?

LoadBalancer will work on Docker-for-Mac and Docker-for-Windows ...READ MORE

answered Oct 10, 2018 in Docker by Tyrion anex
• 8,270 points
44 views