Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.5 KB

File metadata and controls

53 lines (40 loc) · 2.5 KB

Setting Up Docker

Download Docker:

Visit the official Docker website: Get Docker.

For Windows:

  1. Click on the "Download for Windows" button.
  2. Follow the on-screen instructions to download the Docker Desktop Installer.
  3. Once the download is complete, run the installer.
  4. During the installation process, you may be prompted to enable Hyper-V. Allow this if prompted.
  5. After installation, Docker Desktop will start automatically.
  6. You should see the Docker icon in the system tray. Docker is now installed and running on your Windows machine.

For macOS:

  1. Click on the "Download for Mac" button.
  2. Follow the on-screen instructions to download the Docker Desktop Installer.
  3. Once the download is complete, open the Docker.dmg file.
  4. Drag the Docker icon to the Applications folder.
  5. Open Docker from the Applications folder.
  6. You should see the Docker icon in the menu bar. Docker is now installed and running on your macOS machine.

For Linux:

  1. Click on the "Download for Linux" button.
  2. Follow the instructions for your specific Linux distribution. Docker provides installation instructions for various Linux distributions like Ubuntu, Debian, Fedora, CentOS, etc.
  3. After completing the installation steps, start the Docker service.
  4. On Ubuntu, you can use the following commands: sudo service docker start
  5. On systems using systemd (e.g., Ubuntu 16.04 and later), you can use: sudo systemctl start docker
  6. Docker is now installed and running on your Linux machine.

Verify Docker Installation:

To verify that Docker is installed correctly, open a terminal (Command Prompt on Windows, Terminal on macOS/Linux) and run the following command: docker --version You should see information about the Docker version. Additionally, you can run the following command to verify that Docker is able to run containers: docker run hello-world This command downloads a small test image and runs it in a container. If everything is set up correctly, you'll see a "Hello from Docker!" message.