How to install Docker
For Mac, Linux, Windows
Last updated
For Mac, Linux, Windows
Last updated
To install it, all you need to do is downing it: https://www.docker.com/products/docker-desktop/
And then install it for Mac and Windows Users
Linux Users will require you to run some commands, but should not be hard.
The installation is simple, but you do need to confirm whether you are M1/M2/M3 (ARM) Chips or Intel Chips, they are different options when you are trying to download it.
If you are the M1/M2/M3 Chips, download the Apple Chip version. If you are holding an old Mac with Intel Chip, then download the Intel Chip version.
After you downloaded the .dmg file, follow the instruction to do the drag and drop.
After it is installed, open and start it.
For ARM Chip users, make sure you have enabled "Use Rosetta for x86_64/amd64 emulation on Apple Silicon"
Think about why you need to do this?
And then allocate proper amount of resources to the docker in Resources tab.
Make sure you click "Apply and Restart" After you have done the changes.
After this, open your terminal, run docker
and docker compose
to make sure it works.
It will be similar process as Mac, download it, double click to install it.
Then open the Docker Desktop, and the settings:
We mentioned WSL2 in previous Local environment setup, make sure you have that, as Linux provides better developer development experiment.
Then tick the box, Use the WSL2 based engine, this will allow you to use docker inside the WSL2. Then apply and restart.
Also, allocate proper resources to the docker engine.
This is official documentation for install docker in Ubuntu
If you have WSL2 + Ubunut22.04 installed in your machine while you are Windows, you should also need to do the following steps.
First you will need to open the terminal in your Linux system, or Open the terminal of the ubuntu22.04 for windows users.
The follow all the instructions there.
It should just work.
After everything is done.
Run