@@ -54,6 +54,14 @@ Before starting the installation, update your system to ensure all packages are
54
54
sudo yum update -y
55
55
```
56
56
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
+
57
65
### Step 2: Install Required Dependencies
58
66
59
67
Install the necessary packages required to set up the Docker repository.
@@ -206,6 +214,7 @@ sudo rm /usr/local/bin/docker-compose
206
214
If you want to set a custom directory for docker and if you are running behind a proxy, the docker service must be modified
207
215
208
216
Edit the service: /lib/systemd/system/docker.service
217
+
209
218
``` bash
210
219
[Service]
211
220
Type=notify
@@ -219,7 +228,21 @@ RestartSec=2
219
228
Restart=always
220
229
Environment=" HTTP_PROXY=<PROXY_URL>"
221
230
Environment=" HTTPS_PROXY=<PROXY_URL>"
231
+ ```
222
232
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
+ }
223
246
` ` `
224
247
225
248
# # Conclusion
0 commit comments