Docker无法在ubuntu 16.04.01上启动

时间:2016-08-09 08:29:54

标签: ubuntu docker

我正在尝试在ubuntu版本16.04.01上安装docker,安装后出现错误,包有docker-engine错误。当我尝试通过命令docker daemon -D启动docker服务时 我得到这个日志:

DEBU[0000] docker group found. gid: 999
DEBU[0000] Listener created for HTTP on unix (/var/run/docker.sock)
INFO[0000] libcontainerd: new containerd process, pid: 6517
DEBU[0000] libcontainerd: containerd connection state change: TRANSIENT_FAILURE
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=65536
DEBU[0000] containerd: read past events                  count=0
DEBU[0000] containerd: supervisor running                cpus=2 memory=4096 runtime=docker-runc runtimeArgs=[] stateDir=/var/run/docker/libcontainerd/containerd
DEBU[0000] containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock
DEBU[0001] Using default logging driver json-file
DEBU[0001] Golang's threads limit set to 1855710
DEBU[0001] [zfs] zfs command is not available: exec: "zfs": executable file not found in $PATH
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
DEBU[0001] Using graph driver vfs
DEBU[0001] Max Concurrent Downloads: 3
DEBU[0001] Max Concurrent Uploads: 5
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support oom control.
WARN[0001] Your kernel does not support memory swappiness.
WARN[0001] Your kernel does not support kernel memory limit.
WARN[0001] Unable to find cpu cgroup in mounts
WARN[0001] Unable to find cpuset cgroup in mounts
WARN[0001] mountpoint for pids not found
DEBU[0001] Cleaning up old mountid : start.
FATA[0001] Error starting daemon: Devices cgroup isn't mounted

我正在使用由另一家公司托管的服务器,这是ubuntu的预装版本,我已经尝试多次重新安装它并重新执行它但是没有用。

1 个答案:

答案 0 :(得分:0)

这对我有用。

更新软件包信息,确保APT与https方法一起使用,并且已安装CA证书。

 $ sudo apt-get update
 $ sudo apt-get install apt-transport-https ca-certificates

添加新的GPG密钥。

$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

在docker.list中为您的Ubuntu操作系统添加一个条目:

$ vi /etc/apt/sources.list.d/docker.list(不存在)

含量:

deb https://apt.dockerproject.org/repo ubuntu-xenial main

并保存(:wq)

更新APT包索引。

$ sudo apt-get update

清除旧的仓库(如果存在)(之前的安装)。

$ sudo apt-get purge lxc-docker

验证APT是否从正确的存储库中提取。

$ apt-cache policy docker-engine

更新您的包管理器。

$ sudo apt-get update

安装推荐的软件包。

$ sudo apt-get install linux-image-extra-$(uname -r)

安装Docker。

$ sudo apt-get install docker-engine

启动docker守护程序。

$ sudo service docker start

验证码头已正确安装。

$ sudo docker run hello-world

附加:您可以创建一个泊坞组。 我的回答来源:the official documentation of docker