|
1 | 1 | # Docker Installation Guide |
2 | 2 |
|
3 | 3 | ## Installation for |
4 | | - - [Debian-based Linux](#docker-installation-on-debian-based-linux) |
5 | | - - [Windows](#docker-installation-on-windows) |
6 | | - - [macOS](#docker-installation-on-macos) |
7 | 4 |
|
8 | | -### Docker Installation on Debian-based Linux |
| 5 | +- [Debian-based Linux](#docker-installation-on-debian-based-linux) |
| 6 | +- [Windows](#docker-installation-on-windows) |
| 7 | +- [macOS](#docker-installation-on-macos) |
9 | 8 |
|
10 | | -1. **Set up Docker's apt repository:** |
| 9 | +## Docker Installation on Debian-based Linux |
| 10 | + |
| 11 | +1. Set up Docker's apt repository: |
11 | 12 |
|
12 | 13 | ```bash |
13 | 14 | # Add Docker's official GPG key: |
|
25 | 26 | sudo apt-get update |
26 | 27 | ``` |
27 | 28 |
|
28 | | -2. **Install the Docker packages:** |
| 29 | +2. Install the Docker packages: |
29 | 30 |
|
30 | 31 | ```bash |
31 | 32 | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
32 | 33 | ``` |
33 | 34 |
|
34 | | -3. **Add your user to the `docker` group:** |
| 35 | +3. Add your user to the `docker` group: |
35 | 36 |
|
36 | 37 | ```bash |
37 | 38 | sudo usermod -aG docker $USER |
38 | 39 | newgrp docker |
39 | 40 | ``` |
40 | 41 |
|
41 | | -4. **Verify the installation:** |
| 42 | +4. Verify the installation: |
42 | 43 |
|
43 | 44 | ```bash |
44 | 45 | docker run hello-world |
45 | 46 | ``` |
46 | 47 |
|
47 | 48 | --- |
48 | 49 |
|
49 | | -### Docker Installation on Windows |
| 50 | +## Docker Installation on Windows |
50 | 51 |
|
51 | | -1. **Download and Install [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/).** |
| 52 | +1. Download and Install [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/). |
52 | 53 |
|
53 | | -2. **Ensure Docker Desktop is running (check the system tray icon).** |
| 54 | +2. Ensure Docker Desktop is running (check the system tray icon). |
54 | 55 |
|
55 | 56 | --- |
56 | 57 |
|
57 | 58 | ### Docker Installation on macOS |
58 | 59 |
|
59 | | -1. **Download and Install [Docker Desktop for Mac](https://www.docker.com/products/docker-desktop/).** |
60 | | -2. **Verify the installation in Terminal:** |
| 60 | +1. Download and Install [Docker Desktop for Mac](https://www.docker.com/products/docker-desktop/). |
| 61 | +2. Verify the installation in Terminal: |
61 | 62 |
|
62 | 63 | ```bash |
63 | 64 | docker --version |
64 | | - ``` |
| 65 | + ``` |
0 commit comments