The performance issues may or may not be a concern, especially since everyones needs and computer specs are different.Start Learning Docker Updated on June 2nd, 2020 in dev-environment, docker Should You Install Docker with the Docker Toolbox or Docker for Mac Windows If youre running MacOS or Windows you have a few options for installing Docker.
Quick Jump: OS and Hardware Requirements Pros and Cons Which One Should I Use If youre on MacOS or Windows you can install Docker with: Docker for Mac Windows (now known as Docker Desktop) Docker Toolbox Running your own Virtual Machine and installing Docker yourself All 3 of those options have their own pros and cons and in this article were going to cover them. If youre looking for a high level overview of what Docker for Mac Windows and Docker Toolbox is, then check out this article on getting to know Dockers ecosystem. Docker Vs Tollbox Upgrade To 10OS and Hardware Requirements Its helpful to know what you can install before we compare everything, so lets do that: Docker for Mac (Docker Desktop) Docker for Mac requires that youre running Yosemite 10.10.3 or newer but its worth mentioning that you should upgrade to 10.11 because 10.10.x releases are considered use at your own risk. This is pretty useful because you might have some legacy apps running in Vagrant VirtualBox to deal with (I know I do). Docker for Windows (Docker Desktop) As of May 27th 2020, Microsoft released Windows 10 build 2004 (Spring 2020) that allows you to run Docker Deskop on all editions of Windows 10, including Home. For years prior to that you could only run it on Windows Pro, Enterprise or any edition that had Hyper-V available, but since this new Spring 2020 build WSL 2 is available and Docker Desktop can be configured to use it. You can also run VirtualBox 6 alongside Docker Desktop too, although the performance is so-so, but you can use this in a pinch if you have old legacy apps that use Vagrant and VirtualBox together. Docker Toolbox If you cant run Docker for Mac or Docker for Windows then theres the Docker Toolbox. As long as you can run VirtualBox then youre good to go (Docker Toolbox manages this for you). It works all the way back to MacOS 10.8 and Windows 7 (yep, even Home editions). Your own Virtual Machine Docker will happily run inside of VirtualBox, VMWare or any other Type 1 2 Hypervisor thats running a major distribution of Linux. So, similarly to the Docker Toolbox, rolling your own VM has the same requirements. Pros and Cons Now for the good stuff Docker for Mac Docker for Windows (Docker Desktop) Pros Offers the most native experience, you can easily use any terminal you you want since Docker is effectively running on localhost from MacOS Windows POV. Cons On certain MacOS hardware combos the volume performance can be a little slow. I can legit say there are not any wow this sucks cons for Windows, its really solid. Docker Toolbox Pros Offers an out of the box Docker experience if you have no other choice. Cons You need to either use the Docker Quickstart Terminal, or configure your own terminal to connect to the Docker Daemon running a VM. Not a native solution, so youll need to access your Docker Machines IP address if youre developing web apps. Docker Vs Tollbox Code Needs ToUnless you jump through hoops, your code needs to live in your Windows user directory such as C:UsersNicksrcmyapp. Suffers from typical VirtualBox edge case bugs and mount performance issues. Your own Virtual Machine Im not going to bother listing a pros and cons here because I wouldnt recommend doing this UNLESS youre stuck on Windows 7. My recommendation would be to try Docker for Mac Windows first, and test it against your actual use cases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |