2026-11-14 09:11:32
This commit is contained in:
1 parent
e459ad23de
commit
e0928dac6f
2 files changed
+22
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
```bash
|
||||||
|
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
|
||||||
|
sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
|
||||||
|
systemctl --now enable docker
|
||||||
|
systemctl status docker
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Docker images go into `/var/lib/docker`. To move it on other file system, for example `/app/docker`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl stop docker
|
||||||
|
systemctl status docker
|
||||||
|
|
||||||
|
cd /var/lib/
|
||||||
|
mv docker /app/
|
||||||
|
ln -s /app/docker .
|
||||||
|
|
||||||
|
systemctl start docker
|
||||||
|
systemctl status docker
|
||||||
|
```
|
||||||
Reference in new issue
Block a user