Everyone who starts programming, notice the need of installing docker, a really usefull and common app between programmers. Here we show how to install it on every common type of software:
Windows:
- First install Docker Desktop
- Then run the installation file (accept WSL2 if wanted)
- Check if Docker is installed
docker --version - If it doesn't work, install wsl by
wsl --install - Check if it works correctly by entering
docker run hello-worldif you got 'successful message' your docker works correctly
macOS:
- First install Docker Desktop
- Open
.dmgfile and drag docker to Applications - Run installation file (give necessary permissions)
- Check if Docker is installed
docker --version - Check if it works correctly by entering
docker run hello-worldif you got 'successful message' your docker works correctly
Linux (all types):
- First, update your system
sudo apt update - Then install docker
sudo apt install docker.io -y - Start docker service:
sudo systemctl start docker,sudo systemctl enable docker - Check if Docker is installed
docker --version - Check if it works correctly by entering
docker run hello-worldif you got 'successful message' your docker works correctly
Top comments (0)