This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| manuals:vps:vpsadminos:docker [2020/03/17 11:40] – created martyet | manuals:vps:vpsadminos:docker [2023/02/02 23:50] (current) – deleted openVZ parolek | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Docker on vpsAdminOS ====== | ====== Docker on vpsAdminOS ====== | ||
| We support latest version of Docker on our [[manuals: | We support latest version of Docker on our [[manuals: | ||
| - | |||
| - | Please keep in mind there is no compatibility with latest version on [[information: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | First of all we need to enable **Docker** and **FUSE** feature in VPS overview on [[manuals: | ||
| As there are not everytime latest packages in distribution repos, we recommend to instead use the docker.com ones. Installation of these can be done easily on: | As there are not everytime latest packages in distribution repos, we recommend to instead use the docker.com ones. Installation of these can be done easily on: | ||
| Line 26: | Line 23: | ||
| </ | </ | ||
| + | === Fedora 33 === | ||
| + | The upstream version of docker // | ||
| + | < | ||
| + | dnf install -y moby-engine | ||
| + | </ | ||
| + | |||
| + | It's necessary to configure the //dockerd// daemon to run with cgroupdriver=cgroupfs, | ||
| + | < | ||
| + | $ docker run hello-world | ||
| + | docker: Error response from daemon: OCI runtime create failed: cgroup v2 not enabled on this host, can't use systemd (rootless) as cgroups manager: unknown. | ||
| + | </ | ||
| + | |||
| + | To configure the cgroup driver one needs to override the // | ||
| + | < | ||
| + | $ systemctl edit docker | ||
| + | ExecStart=/ | ||
| + | --host=fd:// | ||
| + | --exec-opt native.cgroupdriver=cgroupfs \ | ||
| + | $OPTIONS | ||
| + | </ | ||
| ==== General stuff ==== | ==== General stuff ==== | ||
| Checking that docker is running smoothly: | Checking that docker is running smoothly: | ||
| Line 62: | Line 79: | ||
| < | < | ||
| docker run -it alpine ping -c 3 vpsfree.cz | docker run -it alpine ping -c 3 vpsfree.cz | ||
| - | </ | ||
| - | |||
| - | ===== Docker-in-Docker ===== | ||
| - | Docker-in-Docker does not work by itself, because Docker is trying to connect ''/ | ||
| - | BUT there is one-line hack for this, with volume in bind-mount: | ||
| - | |||
| - | < | ||
| - | docker run -v / | ||
| </ | </ | ||