[Docker] Setting up docker environment for Windows 10 & Mac OS
Part 1/5
In this post, we will first configure your setups to welcome docker into your ‘space’. We’ve talked a lot of good stuffs about docker; but being updated so often with new features added almost weekly can be a double edged sword. This means some of the guide become obsolete by the time you stumble on them; or the guide simply is not compatible with the OS you are running. So, if you are on Windows 10, read section 1. If you are on Mac OS, skip to section 2. If you are using Windows 10 home, you’ll need the docker toolbox.
Section 1: Installing docker on Windows 10 Pro
Let’s gather what you need? This is the bare minimum recipe; you can add stuffs like tab completion, Github Desktop etc. according to taste :)
a PC running on Windows 10 Pro
Docker account — create your account here
Github account — create your account here
Code Editor of your choice (Visual Studio Code/notepad++)
- Get Docker installer here
- Update your Windows (important). Then click on the installer to install docker. (optional: If you got an error, check if virtualization is enabled in BIOS)
- Find the cute docker icon in the taskbar (bottom right corner). Click on docker icon, go to settings. Go to ‘Shared Drives’, tick all the boxes (C:\, D:\ …).
- Open ‘cmd’, type docker version. The image shown below tells that docker has been started successfully.
Section 2: Installing Docker on Mac OS
What you need:
an iMac/Macbook running Mac OS Yosemite or newer
Docker account — create your account here
Github account — create your account here
Code Editor of your choice (Visual Studio Code/Atom)
- If you have a Mac, congratulations (not that docker performs better on it, just that these machines have that Apple logo). Click here to Get Docker.
- Install docker like how you install any other apps.
- Open terminal, type docker version. If you see the docker build details like the image above, you are good to go.
To learn how to setup a web server using container, continue to part 2/3 here