Skip to content

Commit 4337e6e

Browse files
committed
Update docker installation
1 parent c38a816 commit 4337e6e

File tree

1 file changed

+45
-22
lines changed

1 file changed

+45
-22
lines changed

_liberty/technical/installation.md

Lines changed: 45 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,30 @@ This guide covers the installation of Docker and Docker Compose on **CentOS** an
1313

1414
## Index
1515

16-
- [Docker Installation for CentOS](#docker-installation-for-centos)
17-
- [Prerequisites](#prerequisites)
18-
- [Step 1: Update System Packages](#step-1-update-system-packages)
19-
- [Step 2: Install Required Dependencies](#step-2-install-required-dependencies)
20-
- [Step 3: Set Up the Docker Repository](#step-3-set-up-the-docker-repository)
21-
- [Step 4: Install Docker](#step-4-install-docker)
22-
- [Step 5: Start and Enable Docker](#step-5-start-and-enable-docker)
23-
- [Step 6: Verify Docker Installation](#step-6-verify-docker-installation)
24-
- [Step 7: Install Docker Compose](#step-7-install-docker-compose)
25-
- [Step 8: Adding Your User to the Docker Group (Optional)](#step-8-adding-your-user-to-the-docker-group-optional)
26-
- [Uninstall Docker](#uninstall-docker)
27-
- [Docker Installation for Amazon Linux OS](#docker-installation-for-amazon-linux-os)
28-
- [Prerequisites](#prerequisites-1)
29-
- [Step 1: Update System Packages](#step-1-update-system-packages-1)
30-
- [Step 2: Install Docker](#step-2-install-docker)
31-
- [Step 3: Start and Enable Docker](#step-3-start-and-enable-docker)
32-
- [Step 4: Verify Docker Installation](#step-4-verify-docker-installation)
33-
- [Step 5: Install Docker Compose](#step-5-install-docker-compose)
34-
- [Step 6: Adding Your User to the Docker Group (Optional)](#step-6-adding-your-user-to-the-docker-group-optional-1)
35-
- [Uninstall Docker](#uninstall-docker-1)
36-
- [Conclusion](#conclusion)
37-
- [References](#references)
16+
- [Docker Installation Guide](#docker-installation-guide)
17+
- [Index](#index)
18+
- [Docker Installation for CentOS](#docker-installation-for-centos)
19+
- [Prerequisites](#prerequisites)
20+
- [Step 1: Update System Packages](#step-1-update-system-packages)
21+
- [Step 2: Install Required Dependencies](#step-2-install-required-dependencies)
22+
- [Step 3: Set Up the Docker Repository](#step-3-set-up-the-docker-repository)
23+
- [Step 4: Install Docker](#step-4-install-docker)
24+
- [Step 5: Start and Enable Docker](#step-5-start-and-enable-docker)
25+
- [Step 6: Verify Docker Installation](#step-6-verify-docker-installation)
26+
- [Step 7: Adding Your User to the Docker Group (Optional)](#step-7-adding-your-user-to-the-docker-group-optional)
27+
- [Uninstall Docker](#uninstall-docker)
28+
- [Docker Installation for Amazon Linux OS](#docker-installation-for-amazon-linux-os)
29+
- [Prerequisites](#prerequisites-1)
30+
- [Step 1: Update System Packages](#step-1-update-system-packages-1)
31+
- [Step 2: Install Docker](#step-2-install-docker)
32+
- [Step 3: Start and Enable Docker](#step-3-start-and-enable-docker)
33+
- [Step 4: Verify Docker Installation](#step-4-verify-docker-installation)
34+
- [Step 5: Install Docker Compose](#step-5-install-docker-compose)
35+
- [Step 6: Adding Your User to the Docker Group (Optional)](#step-6-adding-your-user-to-the-docker-group-optional)
36+
- [Uninstall Docker](#uninstall-docker-1)
37+
- [Post installation tasks](#post-installation-tasks)
38+
- [Conclusion](#conclusion)
39+
- [References](#references)
3840

3941
## Docker Installation for CentOS
4042

@@ -199,6 +201,27 @@ sudo rm -rf /var/lib/docker
199201
sudo rm /usr/local/bin/docker-compose
200202
```
201203

204+
## Post installation tasks
205+
206+
If you want to set a custom directory for docker and if you are running behin a proxy, the docker service must be modified
207+
208+
Edit the service: /lib/systemd/system/docker.service
209+
```bash
210+
[Service]
211+
Type=notify
212+
# the default is not to use systemd for cgroups because the delegate issues still
213+
# exists and systemd currently does not support the cgroup feature set required
214+
# for containers run by docker
215+
ExecStart=/usr/bin/dockerd --data-root <CUSTOM_DIRECTORY> -H fd:// --containerd=/run/containerd/containerd.sock
216+
ExecReload=/bin/kill -s HUP $MAINPID
217+
TimeoutStartSec=0
218+
RestartSec=2
219+
Restart=always
220+
Environment="HTTP_PROXY=<PROXY_URL>"
221+
Environment="HTTPS_PROXY=<PROXY_URL>"
222+
223+
```
224+
202225
## Conclusion
203226

204227
You have successfully installed Docker and Docker Compose on your CentOS or Amazon Linux OS system. You can now begin deploying and managing your Docker containers for Liberty Framework.

0 commit comments

Comments
 (0)