Skip to content

Commit 9b1b3ad

Browse files
committed
Tweak: Dedicated - Docker
Thanks to @RylanDrake #1684
1 parent ed08d05 commit 9b1b3ad

1 file changed

Lines changed: 34 additions & 12 deletions

File tree

docs/dedicated-linux-docker.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,12 @@ Docker is a lightweight, open source virtualization software to provide services
2222

2323
To begin, you must connect to your Linux server via SSH. Please have a look at our [Initial access (SSH)](dedicated-linux-ssh.md) guide if you require assistance with this. Throughout this guide, we will be using Ubuntu as the Linux distribution.
2424

25-
### Enable Docker Compatibility
26-
27-
You must enable **Docker Compatibility** on your web interface in order to allow Docker contaienrs to work, otherwise you will receive `Permission Denied` errors.
28-
29-
Head over to the **Settings** section on your server's web interface panel, enable the **Docker Compatibility** option and save.
30-
31-
![](https://screensaver01.zap-hosting.com/index.php/s/o5t82kKM38r2MwY/preview)
32-
33-
Once saved, ensure that you restart your server before proceeding.
34-
3525
## Installation
3626

3727
Now that you are connected to your Linux server, you can proceed with the installation methods. Select from one of the Linux repositories below to view the relevant installation steps.
3828

3929
<Tabs>
40-
<TabItem value="ubuntu/debian" label="Ubuntu & Debian" default>
30+
<TabItem value="ubuntu" label="Ubuntu" default>
4131

4232
To begin, you will have to add Docker's package through the use of `apt` and set it up. This will allow you to easily install and update Docker from the repository in the future.
4333

@@ -70,6 +60,39 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
7060

7161
</TabItem>
7262

63+
<TabItem value="debian" label="Debian" default>
64+
65+
To begin, you will have to add Docker's package through the use of `apt` and set it up. This will allow you to easily install and update Docker from the repository in the future.
66+
67+
Use the following commands to add Docker's official GPG key to your repository list.
68+
```
69+
sudo apt-get update
70+
sudo apt-get install ca-certificates curl
71+
sudo install -m 0755 -d /etc/apt/keyrings
72+
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
73+
sudo chmod a+r /etc/apt/keyrings/docker.asc
74+
```
75+
76+
Once these have been setup, you will have to add the repository to the `apt` sources, through the following command.
77+
```
78+
echo \
79+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
80+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
81+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
82+
```
83+
84+
Now that you have added the Docker repository to your sources, run the `apt-get` update command to fetch the changes.
85+
```
86+
sudo apt-get update
87+
```
88+
89+
By this stage, you have successfully setup the Docker `apt` repository. As the final step, you will have to install the Docker pacakages. You can install the latest version using the following command.
90+
```
91+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
92+
```
93+
94+
</TabItem>
95+
7396
<TabItem value="fedora" label="Fedora">
7497

7598
To begin, you should install the `dnf-plugins-core` pacakge which helps in managing repositories.
@@ -153,4 +176,3 @@ sudo systemctl restart [your_service]
153176

154177
Congratulations, you have successfully installed and configured Docker onto your Linux server! If you have any further questions or problems, please contact our support team, who are available to help you every day!
155178

156-

0 commit comments

Comments
 (0)