User Tools

Site Tools


manuals:vps:vpsadminos:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
manuals:vps:vpsadminos:docker [2020/03/17 11:40] – created martyetmanuals:vps:vpsadminos:docker [2021/01/02 17:05] – docker feature not needed Aither
Line 6: Line 6:
  
 ===== Installation ===== ===== Installation =====
-First of all we need to enable **Docker** and **FUSE** feature in VPS overview on [[manuals:vps:vpsAdmin]]. If you cant see these features, you are **not** running on [[manuals:vps:vpsAdminOS]] and therefore need to [[manuals:vps:management|create one]] 
  
 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 25:
 </code> </code>
  
 +=== Fedora 33 ===
 +The upstream version of docker //moby-engine// can be installed directly from Fedora repositories:
 +<code>
 +dnf install -y moby-engine
 +</code>
 +
 +It's necessary to configure the //dockerd// daemon to run with cgroupdriver=cgroupfs, otherwise you encounter the following problem:
 +<code>
 +$ 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.
 +</code>
 +
 +To configure the cgroup driver one needs to override the //ExecStart// for docker.service:
 +<code>
 +$ systemctl edit docker
 +ExecStart=/usr/bin/dockerd \
 +          --host=fd:// \
 +          --exec-opt native.cgroupdriver=cgroupfs \
 +          $OPTIONS
 +</code>
 ==== General stuff ==== ==== General stuff ====
 Checking that docker is running smoothly: Checking that docker is running smoothly:
manuals/vps/vpsadminos/docker.txt · Last modified: 2023/02/02 23:50 by parolek