'apt-get dist-upgrade' get error message 'Job for docker.service failed because the control process exited with error code.' after upgrade ubuntu kernel
referenece: [graphdriver] prior storage driver "aufs" failed: invalid argument
精簡版
1. aufs is no longer supported on Ubuntu kernel 4.*
2. trick is 'rm -rf /var/lib/docker/aufs'
3. sudo service docker start
完整操作過程
精簡版
1. aufs is no longer supported on Ubuntu kernel 4.*
2. trick is 'rm -rf /var/lib/docker/aufs'
3. sudo service docker start
完整操作過程
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osboxes@osboxes:/var/log/upstart$ uname -a | |
Linux osboxes 4.4.6-040406-generic #201603161231 SMP Wed Mar 16 16:59:04 UTC 2016 i686 i686 i686 GNU/Linux | |
osboxes@osboxes:/dev$ sudo apt-get update | |
[sudo] password for osboxes: | |
已有:1 http://archive.ubuntu.com/ubuntu xenial InRelease | |
已有:2 http://security.ubuntu.com/ubuntu xenial-security InRelease | |
已有:3 http://archive.canonical.com/ubuntu xenial InRelease | |
下載:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB] | |
已有:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease | |
下載:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [132 kB] | |
下載:7 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [240 kB] | |
取得 466 kB 用了 5秒 (85.1 kB/s) | |
正在讀取套件清單... 完成 | |
osboxes@osboxes:/dev$ sudo apt-get dist-upgrade | |
正在讀取套件清單... 完成 | |
正在重建相依關係 | |
正在讀取狀態資料... 完成 | |
籌備升級中... 完成 | |
下列套件將會被升級: | |
bash command-not-found command-not-found-data gnome-software gnome-software-common light-themes linux-firmware python3-commandnotfound python3-software-properties | |
software-properties-common software-properties-gtk suru-icon-theme ubuntu-artwork ubuntu-mobile-icons ubuntu-mono ubuntu-software | |
升級 16 個,新安裝 0 個,移除 0 個,有 0 個未被升級。 | |
1 個沒有完整得安裝或移除。 | |
需要下載 45.4 MB 的套件檔。 | |
此操作完成之後,會多佔用 542 kB 的磁碟空間。 | |
Do you want to continue? [Y/n] y | |
下載:1 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 bash i386 4.3-14ubuntu1.1 [591 kB] | |
下載:2 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 command-not-found-data i386 0.3ubuntu16.04.2 [865 kB] | |
下載:3 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 python3-commandnotfound all 0.3ubuntu16.04.2 [5,766 B] | |
下載:4 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 command-not-found all 0.3ubuntu16.04.2 [3,696 B] | |
下載:5 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-software i386 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1 [11.6 kB] | |
下載:6 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 gnome-software i386 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1 [243 kB] | |
下載:7 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 gnome-software-common all 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1 [2,257 kB] | |
下載:8 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-mono all 14.04+16.04.20160621-0ubuntu1 [177 kB] | |
下載:9 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 light-themes all 14.04+16.04.20160621-0ubuntu1 [153 kB] | |
下載:10 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 linux-firmware all 1.157.2 [32.6 MB] | |
下載:11 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 software-properties-common all 0.96.20.2 [9,420 B] | |
下載:12 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 software-properties-gtk all 0.96.20.2 [47.1 kB] | |
下載:13 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 python3-software-properties all 0.96.20.2 [19.6 kB] | |
下載:14 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-mobile-icons all 14.04+16.04.20160621-0ubuntu1 [6,841 kB] | |
86% [14 ubuntu-mobile-icons 2,414 kB/6,841 kB 35%] 下載:15 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 suru-icon-theme all 14.04+16.04.20160621-0ubuntu1 [1,625 kB] | |
下載:16 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 ubuntu-artwork all 1:14.04+16.04.20160621-0ubuntu1 [7,624 B] | |
取得 45.4 MB 用了 5分18秒 (143 kB/s) | |
(讀取資料庫 ... 目前共安裝了 232694 個檔案和目錄。) | |
準備解開 .../bash_4.3-14ubuntu1.1_i386.deb ... | |
Unpacking bash (4.3-14ubuntu1.1) over (4.3-14ubuntu1) ... | |
Processing triggers for install-info (6.1.0.dfsg.1-5) ... | |
Processing triggers for man-db (2.7.5-1) ... | |
設定 bash (4.3-14ubuntu1.1) ... | |
安裝新版的設定檔 /etc/skel/.profile ... | |
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode | |
(讀取資料庫 ... 目前共安裝了 232694 個檔案和目錄。) | |
準備解開 .../command-not-found-data_0.3ubuntu16.04.2_i386.deb ... | |
Unpacking command-not-found-data (0.3ubuntu16.04.2) over (0.3ubuntu16.04.1) ... | |
準備解開 .../python3-commandnotfound_0.3ubuntu16.04.2_all.deb ... | |
Unpacking python3-commandnotfound (0.3ubuntu16.04.2) over (0.3ubuntu16.04.1) ... | |
準備解開 .../command-not-found_0.3ubuntu16.04.2_all.deb ... | |
Unpacking command-not-found (0.3ubuntu16.04.2) over (0.3ubuntu16.04.1) ... | |
準備解開 .../ubuntu-software_3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1_i386.deb ... | |
Unpacking ubuntu-software (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) over (3.20.1+git20160426.1.a976144-ubuntu-xenial-0ubuntu1) ... | |
準備解開 .../gnome-software_3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1_i386.deb ... | |
Unpacking gnome-software (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) over (3.20.1+git20160426.1.a976144-ubuntu-xenial-0ubuntu1) ... | |
準備解開 .../gnome-software-common_3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1_all.deb ... | |
Unpacking gnome-software-common (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) over (3.20.1+git20160426.1.a976144-ubuntu-xenial-0ubuntu1) ... | |
準備解開 .../ubuntu-mono_14.04+16.04.20160621-0ubuntu1_all.deb ... | |
Unpacking ubuntu-mono (14.04+16.04.20160621-0ubuntu1) over (14.04+16.04.20160415-0ubuntu2) ... | |
準備解開 .../light-themes_14.04+16.04.20160621-0ubuntu1_all.deb ... | |
Unpacking light-themes (14.04+16.04.20160621-0ubuntu1) over (14.04+16.04.20160415-0ubuntu2) ... | |
準備解開 .../linux-firmware_1.157.2_all.deb ... | |
Unpacking linux-firmware (1.157.2) over (1.157.1) ... | |
準備解開 .../software-properties-common_0.96.20.2_all.deb ... | |
Unpacking software-properties-common (0.96.20.2) over (0.96.20.1) ... | |
準備解開 .../software-properties-gtk_0.96.20.2_all.deb ... | |
Unpacking software-properties-gtk (0.96.20.2) over (0.96.20.1) ... | |
準備解開 .../python3-software-properties_0.96.20.2_all.deb ... | |
Unpacking python3-software-properties (0.96.20.2) over (0.96.20.1) ... | |
準備解開 .../ubuntu-mobile-icons_14.04+16.04.20160621-0ubuntu1_all.deb ... | |
Unpacking ubuntu-mobile-icons (14.04+16.04.20160621-0ubuntu1) over (14.04+16.04.20160415-0ubuntu2) ... | |
準備解開 .../suru-icon-theme_14.04+16.04.20160621-0ubuntu1_all.deb ... | |
Unpacking suru-icon-theme (14.04+16.04.20160621-0ubuntu1) over (14.04+16.04.20160415-0ubuntu2) ... | |
準備解開 .../ubuntu-artwork_1%3a14.04+16.04.20160621-0ubuntu1_all.deb ... | |
Unpacking ubuntu-artwork (1:14.04+16.04.20160621-0ubuntu1) over (1:14.04+16.04.20160415-0ubuntu2) ... | |
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... | |
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160523-0ubuntu1) ... | |
Rebuilding /usr/share/applications/bamf-2.index... | |
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... | |
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... | |
Processing triggers for mime-support (3.59ubuntu1) ... | |
Processing triggers for man-db (2.7.5-1) ... | |
Processing triggers for libglib2.0-0:i386 (2.48.1-1~ubuntu16.04.1) ... | |
Processing triggers for dbus (1.10.6-1ubuntu3) ... | |
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ... | |
設定 docker.io (1.10.3-0ubuntu6) ... | |
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. | |
invoke-rc.d: initscript docker, action "start" failed. | |
dpkg: error processing package docker.io (--configure): | |
子程序 已安裝的 post-installation script 傳回了錯誤退出狀態 1 | |
設定 command-not-found-data (0.3ubuntu16.04.2) ... | |
設定 python3-commandnotfound (0.3ubuntu16.04.2) ... | |
設定 command-not-found (0.3ubuntu16.04.2) ... | |
設定 gnome-software-common (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) ... | |
設定 gnome-software (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) ... | |
設定 ubuntu-software (3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1) ... | |
設定 ubuntu-mono (14.04+16.04.20160621-0ubuntu1) ... | |
設定 light-themes (14.04+16.04.20160621-0ubuntu1) ... | |
設定 linux-firmware (1.157.2) ... | |
設定 python3-software-properties (0.96.20.2) ... | |
設定 software-properties-common (0.96.20.2) ... | |
設定 software-properties-gtk (0.96.20.2) ... | |
設定 ubuntu-mobile-icons (14.04+16.04.20160621-0ubuntu1) ... | |
設定 suru-icon-theme (14.04+16.04.20160621-0ubuntu1) ... | |
設定 ubuntu-artwork (1:14.04+16.04.20160621-0ubuntu1) ... | |
處理時發生錯誤: | |
docker.io | |
E: Sub-process /usr/bin/dpkg returned an error code (1) | |
osboxes@osboxes:/dev$ systemctl status docker.service | |
● docker.service - Docker Application Container Engine | |
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) | |
Active: failed (Result: exit-code) since 二 2016-07-05 10:03:52 CST; 26min ago | |
Docs: https://docs.docker.com | |
Process: 17031 ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE) | |
Main PID: 17031 (code=exited, status=1/FAILURE) | |
7月 05 10:03:52 osboxes systemd[1]: Starting Docker Application Container Engine... | |
7月 05 10:03:52 osboxes docker[17031]: time="2016-07-05T10:03:52.584187129+08:00" level=error msg="[graphdriver] prior storage driver \"aufs\" failed: driver not supported" | |
7月 05 10:03:52 osboxes docker[17031]: time="2016-07-05T10:03:52.584317976+08:00" level=fatal msg="Error starting daemon: error initializing graphdriver: driver not supported" | |
7月 05 10:03:52 osboxes systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE | |
7月 05 10:03:52 osboxes systemd[1]: Failed to start Docker Application Container Engine. | |
7月 05 10:03:52 osboxes systemd[1]: docker.service: Unit entered failed state. | |
7月 05 10:03:52 osboxes systemd[1]: docker.service: Failed with result 'exit-code'. | |
osboxes@osboxes:/dev$ docker version | |
Client: | |
Version: 1.10.3 | |
API version: 1.22 | |
Go version: go1.6.1 | |
Git commit: 20f81dd | |
Built: Wed, 20 Apr 2016 14:19:16 -0700 | |
OS/Arch: linux/386 | |
Cannot connect to the Docker daemon. Is the docker daemon running on this host? | |
osboxes@osboxes:/dev$ mount |grep docker | |
osboxes@osboxes:/dev$ mount | |
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) | |
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) | |
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1014072k,nr_inodes=211130,mode=755) | |
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) | |
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=206200k,mode=755) | |
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) | |
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) | |
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) | |
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) | |
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755) | |
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) | |
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) | |
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) | |
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) | |
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) | |
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event) | |
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children) | |
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb) | |
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) | |
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) | |
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) | |
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids) | |
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) | |
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) | |
mqueue on /dev/mqueue type mqueue (rw,relatime) | |
debugfs on /sys/kernel/debug type debugfs (rw,relatime) | |
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) | |
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) | |
vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other) | |
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755) | |
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=206200k,mode=700,uid=1000,gid=1000) | |
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) | |
osboxes@osboxes:/dev$ cat /proc/mounts | |
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 | |
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 | |
udev /dev devtmpfs rw,nosuid,relatime,size=1014072k,nr_inodes=211130,mode=755 0 0 | |
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 | |
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=206200k,mode=755 0 0 | |
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 | |
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 | |
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 | |
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 | |
tmpfs /sys/fs/cgroup tmpfs rw,mode=755 0 0 | |
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 | |
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 | |
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 | |
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 | |
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 | |
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event 0 0 | |
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,clone_children 0 0 | |
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb 0 0 | |
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 | |
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 | |
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 | |
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids 0 0 | |
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0 | |
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0 | |
mqueue /dev/mqueue mqueue rw,relatime 0 0 | |
debugfs /sys/kernel/debug debugfs rw,relatime 0 0 | |
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 | |
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0 | |
vmware-vmblock /run/vmblock-fuse fuse.vmware-vmblock rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other 0 0 | |
cgmfs /run/cgmanager/fs tmpfs rw,relatime,size=100k,mode=755 0 0 | |
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=206200k,mode=700,uid=1000,gid=1000 0 0 | |
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0 | |
osboxes@osboxes:/dev$ cat /proc/mounts |grep au | |
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0 | |
vmware-vmblock /run/vmblock-fuse fuse.vmware-vmblock rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other 0 0 | |
osboxes@osboxes:/dev$ cat /proc/mounts |grep docker | |
osboxes@osboxes:/dev$ cat /proc/mounts |grep aufs | |
osboxes@osboxes:/dev$ stop docker | |
stop:未知工作:docker | |
osboxes@osboxes:/dev$ df | |
檔案系統 1K-區段 已用 可用 已用% 掛載點 | |
udev 1014072 0 1014072 0% /dev | |
tmpfs 206200 11716 194484 6% /run | |
/dev/sda1 101016992 19172640 76689948 21% / | |
tmpfs 1030988 840 1030148 1% /dev/shm | |
tmpfs 5120 4 5116 1% /run/lock | |
tmpfs 1030988 0 1030988 0% /sys/fs/cgroup | |
cgmfs 100 0 100 0% /run/cgmanager/fs | |
tmpfs 206200 88 206112 1% /run/user/1000 | |
osboxes@osboxes:/dev$ cd /var/lib/docker | |
osboxes@osboxes:/var/lib/docker$ ls | |
ls: 無法開啟 '.' 目錄: 拒絕不符權限的操作 | |
osboxes@osboxes:/var/lib/docker$ sudo ls | |
[sudo] password for osboxes: | |
aufs containers devicemapper graph init linkgraph.db repositories-aufs repositories-devicemapper tmp trust volumes | |
osboxes@osboxes:/var/lib/docker$ sudo stop docker | |
stop: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ sudo start docker | |
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ mount /var/lib/docker | |
mount: can't find /var/lib/docker in /etc/fstab | |
osboxes@osboxes:/var/lib/docker$ cat /etc/fstab | |
# /etc/fstab: static file system information. | |
# | |
# Use 'blkid' to print the universally unique identifier for a | |
# device; this may be used with UUID= as a more robust way to name devices | |
# that works even if disks are added and removed. See fstab(5). | |
# | |
# <file system> <mount point> <type> <options> <dump> <pass> | |
# / was on /dev/sda1 during installation | |
UUID=86260989-3a40-4d39-9c43-d2151eecc45d / ext4 errors=remount-ro 0 1 | |
# swap was on /dev/sda5 during installation | |
UUID=9f4d7cf2-e2be-4d57-bfca-0284b59667ff none swap sw 0 0 | |
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 | |
osboxes@osboxes:/var/lib/docker$ umount /var/lib/docker | |
umount: /var/lib/docker: not mounted | |
osboxes@osboxes:/var/lib/docker$ umount /var/lib/docker/aufs | |
umount: /var/lib/docker/aufs: not mounted | |
osboxes@osboxes:/var/lib/docker$ mount /var/lib/docker/aufs | |
mount: can't find /var/lib/docker/aufs in /etc/fstab | |
osboxes@osboxes:/var/lib/docker$ docker ps | |
Cannot connect to the Docker daemon. Is the docker daemon running on this host? | |
osboxes@osboxes:/var/lib/docker$ start docker | |
start:未知工作:docker | |
osboxes@osboxes:/var/lib/docker$ sudo start docker | |
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ set -x | |
osboxes@osboxes:/var/lib/docker$ sudo start docker | |
+ sudo start docker | |
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ set +x | |
+ set +x | |
osboxes@osboxes:/var/lib/docker$ uname -a | |
Linux osboxes 4.4.6-040406-generic #201603161231 SMP Wed Mar 16 16:59:04 UTC 2016 i686 i686 i686 GNU/Linux | |
osboxes@osboxes:/var/lib/docker$ rm -rf /var/lib/docker/aufs | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/dev/console': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/dev/shm/.wh..wh..opq': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/.wh..wh.aufs': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/.wh..wh.orph': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/etc/resolv.conf': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/etc/hostname': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/etc/hosts': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/etc/mtab': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/.dockerinit': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/.dockerenv': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init/.wh..wh.plnk': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278/.wh..wh.aufs': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278/.wh..wh.orph': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/diff/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278/.wh..wh.plnk': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/mnt/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/mnt/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/layers/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278-init': 拒絕不符權限的操作 | |
rm: 無法移除 '/var/lib/docker/aufs/layers/13d56e5504e3bfd1bd6fcce066e567ded0c3b2a7b39536874062909d60887278': 拒絕不符權限的操作 | |
osboxes@osboxes:/var/lib/docker$ sudo rm -rf /var/lib/docker/aufs | |
osboxes@osboxes:/var/lib/docker$ ls /var/lib/docker/ | |
ls: 無法開啟 '/var/lib/docker/' 目錄: 拒絕不符權限的操作 | |
osboxes@osboxes:/var/lib/docker$ sudo ls /var/lib/docker/ | |
containers devicemapper graph init linkgraph.db repositories-aufs repositories-devicemapper tmp trust volumes | |
osboxes@osboxes:/var/lib/docker$ sudo ls | |
containers devicemapper graph init linkgraph.db repositories-aufs repositories-devicemapper tmp trust volumes | |
osboxes@osboxes:/var/lib/docker$ start docker | |
start:未知工作:docker | |
osboxes@osboxes:/var/lib/docker$ sudo start docker | |
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ sudo apt-get dist-upgrade | |
正在讀取套件清單... 完成 | |
正在重建相依關係 | |
正在讀取狀態資料... 完成 | |
籌備升級中... 完成 | |
升級 0 個,新安裝 0 個,移除 0 個,有 0 個未被升級。 | |
1 個沒有完整得安裝或移除。 | |
此操作完成之後,會多佔用 0 B 的磁碟空間。 | |
Do you want to continue? [Y/n] Y | |
設定 docker.io (1.10.3-0ubuntu6) ... | |
osboxes@osboxes:/var/lib/docker$ docker ps | |
Cannot connect to the Docker daemon. Is the docker daemon running on this host? | |
osboxes@osboxes:/var/lib/docker$ sudo start docker | |
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: 連線被拒絕 | |
osboxes@osboxes:/var/lib/docker$ sudo apt-get update | |
已有:1 http://security.ubuntu.com/ubuntu xenial-security InRelease | |
已有:2 http://archive.ubuntu.com/ubuntu xenial InRelease | |
已有:3 http://archive.canonical.com/ubuntu xenial InRelease | |
下載:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB] | |
已有:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease | |
取得 94.5 kB 用了 1秒 (49.2 kB/s) | |
正在讀取套件清單... 完成 | |
osboxes@osboxes:/var/lib/docker$ sudo apt-get dist-upgrade | |
正在讀取套件清單... 完成 | |
正在重建相依關係 | |
正在讀取狀態資料... 完成 | |
籌備升級中... 完成 | |
升級 0 個,新安裝 0 個,移除 0 個,有 0 個未被升級。 | |
osboxes@osboxes:/var/log/upstart$ sudo service docker start | |
osboxes@osboxes:/var/log/upstart$ sudo docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
留言
張貼留言