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
• 10,610 points
393 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,700 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,680 points
752 views
0 votes
1 answer
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, 2019 in Docker by Sirajul
• 59,230 points
10,260 views
0 votes
1 answer
+2 votes
1 answer
+2 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
• 58,090 points
2,467 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 20, 2018 in Docker by Tyrion anex
• 8,700 points
629 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,700 points
1,124 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP