我无法在 Ubuntu Bionic 上启动 dockerd 守护程序(Docker 版本 20.10.9,构建 79ea9d3)。我正在从根控制台运行 dockerd 命令,但是,它抱怨缺少权限。有任何想法吗?
INFO[2021-10-10T19:39:58.612441607Z] ClientConn switching balancer to "pick_first" module=grpc
ERRO[2021-10-10T19:39:58.613859099Z] failed to mount overlay: operation not permitted storage-driver=overlay2
ERRO[2021-10-10T19:39:58.613928815Z] exec: "fuse-overlayfs": executable file not found in $PATH storage-driver=fuse-overlayfs
ERRO[2021-10-10T19:39:58.614064680Z] AUFS was not found in /proc/filesystems storage-driver=aufs
ERRO[2021-10-10T19:39:58.614892014Z] failed to mount overlay: operation not permitted storage-driver=overlay
WARN[2021-10-10T19:39:58.615207707Z] Unable to setup quota: operation not permitted
WARN[2021-10-10T19:39:58.619883090Z] Your kernel does not support cgroup blkio weight
WARN[2021-10-10T19:39:58.619965419Z] Your kernel does not support cgroup blkio weight_device
WARN[2021-10-10T19:39:58.619973953Z] Your kernel does not support cgroup blkio throttle.read_bps_device
WARN[2021-10-10T19:39:58.619993780Z] Your kernel does not support cgroup blkio throttle.write_bps_device
WARN[2021-10-10T19:39:58.620015840Z] Your kernel does not support cgroup blkio throttle.read_iops_device
WARN[2021-10-10T19:39:58.620022495Z] Your kernel does not support cgroup blkio throttle.write_iops_device
INFO[2021-10-10T19:39:58.620199322Z] Loading containers: start.
WARN[2021-10-10T19:39:58.621181647Z] Running iptables --wait -t nat -L -n failed with message: `iptables v1.6.1: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.`, error: exit status 3
INFO[2021-10-10T19:39:58.634973120Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
INFO[2021-10-10T19:39:58.636323948Z] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2021-10-10T19:39:58.638791830Z] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.1: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)