Installing Docker
To start using Docker, you need to install it on your computer. Docker provides installers for Windows, macOS, and various Linux distributions. Follow the steps for your operating system.
Installing Docker on Windows
1. Download Docker Desktop for Windows from docker.com.
2. Run the installer and follow the setup wizard.
3. After installation, Docker Desktop starts automatically. You'll see a whale icon in the system tray.
4. Open a command prompt or PowerShell and verify:
docker --versionInstalling Docker on macOS
1. Download Docker Desktop for Mac from docker.com.
2. Drag Docker to the Applications folder.
3. Launch Docker from Applications. You'll see the whale icon in the menu bar.
4. Open Terminal and run:
docker --versionInstalling Docker on Linux (Ubuntu)
Open a terminal and run:
sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable dockerTo run Docker without sudo, add your user to the docker group:sudo usermod -aG docker $USERLog out and back in, then verify:docker --versionRunning a Test Container
After installation, run the classic hello-world container to confirm everything works:
docker run hello-worldIf you see a welcome message, Docker is ready.Two Minute Drill
- Docker Desktop is available for Windows and macOS.
- On Linux, use
apt install docker.io(Ubuntu). - Verify installation with
docker --version. - Run
docker run hello-worldto test.
Need more clarification?
Drop us an email at career@quipoinfotech.com
