DEV Community

Discussion on: Lessons Learned with Docker

Collapse
 
andrewdtanner profile image
Andrew Tanner 🇪🇺

I'm a Vagrant user and have toyed with the idea of Docker but very much feel like it might be a sledgehammer to a nail for personal projects. Vagrant is quite heavy and I did cause myself a headache by not using an LTS Ubuntu distro so had to rebuild my box.

Question is, is there much benefit to using Docker for very small scale, personal projects? It seems better suited to scale. I'd be happy to learn just so I can learn something new but that might be as far as it goes.

Collapse
 
gegere profile image
#JASON

There is definitely a benefit for using Docker over Vagrant. Vagrant is a resource hog and takes a long time to deploy as it is near a full distro.

Docker is great for personal projects, small dev projects, and large scale projects.

I'm not sure what coding language you are using but I have a robust docker container repo for review here: github.com/htmlgraphic/Apache

In just a few commands you can have a duplicate setup with very small resource footprint when compared to Vagrant.

Collapse
 
aptituz profile image
Patrick Schönfeld

On top of that, I have to say that docker-compose even further increases the benefit of docker over vagrant, because it makes it very easy to share a whole environment that depends on other services (e.g. mysql, LDAP or whatever).