DEV Community

Cover image for How to install Docker explained
Arshia Rahbari
Arshia Rahbari

Posted on

How to install Docker explained

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:

  1. First install Docker Desktop
  2. Then run the installation file (accept WSL2 if wanted)
  3. Check if Docker is installed docker --version
  4. If it doesn't work, install wsl by wsl --install
  5. Check if it works correctly by entering docker run hello-world if you got 'successful message' your docker works correctly

macOS:

  1. First install Docker Desktop
  2. Open .dmg file and drag docker to Applications
  3. Run installation file (give necessary permissions)
  4. Check if Docker is installed docker --version
  5. Check if it works correctly by entering docker run hello-world if you got 'successful message' your docker works correctly

Linux (all types):

  1. First, update your system sudo apt update
  2. Then install docker sudo apt install docker.io -y
  3. Start docker service: sudo systemctl start docker, sudo systemctl enable docker
  4. Check if Docker is installed docker --version
  5. Check if it works correctly by entering docker run hello-world if you got 'successful message' your docker works correctly

Top comments (0)