In order for us to use Docker we must install a piece of software. Please go to your correct OS for how to install Docker. After we have Docker installed we will verify that Docker correctly works and look at some of the Docker commands.
Go to https://docs.docker.com/desktop/install/windows-install/ and click on "Docker Desktop for Windows" this will download the needed exe file to install Docker. Do not run the exe file. We will need to configure your Windows system a bit.
Note the Windows requirements to run Docker on the website. Basically, you need to have an updated version of Windows 10 or Windows 11.
Next, we need to enable WSL (Windows Subsystem for Linux) 2 feature in Windows. Follow the steps below to complete this:
Launch a Powershell as the administrator user
Enter the following command: wsl --install
This command will enable the optional components, download the latest Linux kernel and set WSL 2 as default. This will also download the Ubuntu version of Linux.
Once WSL 2 has been installed reboot your computer.
You can also follow directions provided by Microsoft here: https://docs.microsoft.com/en-us/windows/wsl/install
Configure your Windows system to receive updates for other Windows Products:
Windows 10 : Open Settings > Update & Security > Windows Update.
Windows 11 : Open Settings > Windows Update.
Click on "Advanced options"
Enable "Receive updates for other Microsoft products when you update Windows"
Returning to the previous page in Settings, click "Check for updates" and update your system as needed
This will allow Windows to install the latest Linux 2 kernel for WSL 2.
We have configured our Windows System to work with WSL 2. We can now run the Docker Desktop Install.exe (file downloaded in Step 1, can be found in your Downloads folder most likely).
When the installer asks make sure you select Use WSL2 instead of Hyper-V as this is what we've configured our system to use with Docker.
Provide the required authorization for the installer to complete.
If your user account does not have admin level access we will need to add your user account to the docker-users group.
Run Computer Management as an administrator.
Navigate to Local Users and Groups --> Groups --> docker-users.
Right-click and add your user to the group.
Logout and log back in for the changes to take
This should complete the Docker install for Windows. You can also follow the steps provided by Docker: https://docs.docker.com/desktop/install/windows-install/
To help make the installation of Docker easier please watch the video of me getting Docker to run on Windows 10. I am only provide a demo on how to do this on Windows 10 as doing this on a Mac is a lot easier.
This video has some areas that I took and sped up the video to save time. The video is just over 12 minutes long, but I would expect that you'd be able to do it a lot quicker on your personal computer.
Make sure you have at lest macOS 10.15 or later. Docker recommends that you upgrade to the latest version of macOS.
If you have VirtualBox 4.3.30 or earlier you will need to uninstall or upgrade this as it is not compatible with Docker Desktop.
Download the Docker Install for Intel.
Open the Docker.dmg file to open the install.
Drag the Docker icon to your Applications folder (like you do for all software installs on a mac).
In the Applications folder double-click the Docker.app to start Docker.
In the Docker Menu (this is a little boat icon on your top menu bar) agree to the Docker Subscription Service Agreement.
You can also follow the instructions that are provided by Docker: https://docs.docker.com/desktop/install/mac-install/
Docker recommends to use Rosetta 2 for the best user experience. To install Rosetta 2 launch a terminal window from Spotlight (search for term) and then run the following command:
softwareupdate --install-rosetta
Download the Docker install file for Apple CPUs.
Open the Docker.dmg file to open the install.
Drag the Docker icon to your Applications folder (like you do for all software installs on a Mac).
In the Applications folder double-click the Docker.app to start Docker.
In the Docker Menu (this is a little boat icon on your top menu bar) agree to the Docker Subscription Service Agreement.
You can also follow the instructions that are provided by Docker: https://docs.docker.com/desktop/install/mac-install/.
Warning: I do not have a Mac with an Apple CPU, so I have not been able to test this out.