Skip to content

Commit 9244a1d

Browse files
committed
Update docker documentation
1 parent d6eef9b commit 9244a1d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

_liberty/technical/installation.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ Before starting the installation, update your system to ensure all packages are
5454
sudo yum update -y
5555
```
5656

57+
if Podman is installed, remove all packages, artifacts and containers storage
58+
59+
```bash
60+
yum remove buildah skopeo podman containers-common atomic-registries docker container-tools
61+
rm -rf /etc/containers/* /var/lib/containers/* /etc/docker /etc/subuid* /etc/subgid*
62+
cd ~ && rm -rf /.local/share/containers/
63+
```
64+
5765
### Step 2: Install Required Dependencies
5866

5967
Install the necessary packages required to set up the Docker repository.
@@ -206,6 +214,7 @@ sudo rm /usr/local/bin/docker-compose
206214
If you want to set a custom directory for docker and if you are running behind a proxy, the docker service must be modified
207215

208216
Edit the service: /lib/systemd/system/docker.service
217+
209218
```bash
210219
[Service]
211220
Type=notify
@@ -219,7 +228,21 @@ RestartSec=2
219228
Restart=always
220229
Environment="HTTP_PROXY=<PROXY_URL>"
221230
Environment="HTTPS_PROXY=<PROXY_URL>"
231+
```
222232

233+
If you want to change the default IP range (172.17.x.x) for docker
234+
Edit the file: /etc/docker/daemon.json
235+
236+
```bash
237+
# Set the ip range according to your requirements
238+
# bip is for the internal interface
239+
# default-address-pools is for all new networks
240+
{
241+
"bip": "172.26.0.1/16",
242+
"default-address-pools": [
243+
{ "base": "172.27.0.0/16", "size": 24 }
244+
]
245+
}
223246
```
224247
225248
## Conclusion

0 commit comments

Comments
 (0)