No se puede ejecutar Docker en Centos 7

No se puede ejecutar Docker en Centos 7

Instalé Docker siguiendo las instrucciones del sitio web oficial, pero obtengo lo siguiente (de journalctl -xe):

Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.614348477Z" level=info msg="Starting up"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.646352167Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.646395968Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.646438441Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.646482278Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.648745422Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.648780339Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.648824261Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.648847918Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.650640781Z" level=error msg="failed to mount overlay: no such device" storage-driver=overlay2
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.652619063Z" level=error msg="AUFS was not found in /proc/filesystems" storage-driver=aufs
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.653285845Z" level=error msg="failed to mount overlay: no such device" storage-driver=overlay
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678262705Z" level=warning msg="Your kernel does not support oom control"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678323247Z" level=warning msg="Your kernel does not support memory swappiness"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678339101Z" level=warning msg="Your kernel does not support kernel memory limit"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678352245Z" level=warning msg="Your kernel does not support kernel memory TCP limit"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678365163Z" level=warning msg="Unable to find cpu cgroup in mounts"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678378018Z" level=warning msg="Unable to find cpuset cgroup in mounts"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.678391295Z" level=warning msg="Unable to find pids cgroup in mounts"
Sep 12 11:15:16 myhostname dockerd[18504]: failed to start daemon: Devices cgroup isn't mounted

Información del sistema: OSCentos 7 Kernel Version: 3.10

La salida de cat /etc/os-releasees:

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

La salida de uname -res:

3.10.0-042stab141.3

Respuesta1

Su VPS de "máquina virtual" no es en realidad una VM, sino un contenedor OpenVZ. No puede ejecutar Docker en este entorno. Compre un VPS diferente que no utilice OpenVZ.

información relacionada