You can either follow the instructions below or the instructions from the Docker website.
- Press the Windows key or click the start button.
- Type
powershell
. Don't press enter! - Click "Run as administrator".
- Type in
wsl --install
and press enter. - Close the Powershell window. This is running as Administrator, and we don't want that anymore.
- Type
powershell
. Press enter! We want to open it for our normal user. - Copy and paste the following and press enter to download the Docker installer:
Invoke-WebRequest -Uri "https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe" -Outfile "$HOME\Downloads\Docker Desktop Installer.exe"
- Copy and paste the following and press enter to install Docker Desktop:
Start-Process "$HOME\Downloads\Docker Desktop Installer.exe" -Wait install
- You're done! You can try starting Docker Desktop like any other software.
You can either follow the instructions below or the instructions from the Docker website.
- Open Spotlight either by pressing Command and spacebar or by clicking the magnifying glass in the top right of your screen.
- Type in
Terminal
and open Terminal. - If you're on a new Mac with an M1 chip, copy and paste the following command into Terminal and press enter:
softwareupdate --install-rosetta
- Copy and paste the following and press enter to download the Docker for Mac installer:
curl -o ~/Downloads/Docker.dmg 'https://desktop.docker.com/mac/main/amd64/Docker.dmg'
- Copy and paste the following and press enter to install Docker for Mac. It will ask you for your password. When you type your password, nothing will appear. This is normal and for security. Type your password and press enter when prompted.
sudo hdiutil attach ~/Downloads/Docker.dmg sudo /Volumes/Docker/Docker.app/Contents/MacOS/install sudo hdiutil detach /Volumes/Docker
- You're done! Using Spotlight again, run Docker for Mac.
You can either follow the instructions below or the instructions from the Docker website.
We assume you're aware of Terminal. All of these commands should be run in terminal. The first sudo
command will ask you for your password. When you type your password, nothing will appear. This is normal and for security. Type your password and press enter when prompted.
- Copy and paste the following. It installs dependencies for Docker, securely adds the Docker repository to your recognized package repositories, and installs Docker.
sudo apt-get update sudo apt-get install -y \ ca-certificates \ curl \ gnupg \ lsb-release curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io
- You're done! Run
docker --version
to ensure it installed correctly.