centos-7 yum裝docker-ce後啟動失敗
相關版本:
centos-7: CentOS Linux release 7.0.1406 (Core)
docker-ce: Docker version 18.03.0-ce, build 0520e24
yum docker 映象:
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
概要過程:
安裝成功,啟動報錯
====================================
[[email protected] ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
-------------------------------------------------
檢視系統日誌
====================================
Apr 3 15:31:11 Docker systemd: Starting Docker Application Container Engine...
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11.659260747+08:00" level=info msg="libcontainerd: started new docker-containerd process" pid=5156
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="starting containerd" module=containerd revision=cfd04396dc68220d1cecbe686a6cc3aa5ce3667c version=v1.0.2
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.content.v1.content"..." module=containerd type=io.containerd.content.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." module=containerd type=io.containerd.snapshotter.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." module=containerd type=io.containerd.snapshotter.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.overlayfs" error="/var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.overlayfs does not support d_type. If the backing filesystem is xfs, please reformat with ftype=1 to enable d_type support" module=containerd
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." module=containerd type=io.containerd.metadata.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=warning msg="could not use snapshotter overlayfs in metadata plugin" error="/var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.overlayfs does not support d_type. If the backing filesystem is xfs, please reformat with ftype=1 to enable d_type support" module="containerd/io.containerd.metadata.v1.bolt"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." module=containerd type=io.containerd.differ.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." module=containerd type=io.containerd.gc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." module=containerd type=io.containerd.monitor.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." module=containerd type=io.containerd.runtime.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." module=containerd type=io.containerd.grpc.v1
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11+08:00" level=info msg="containerd successfully booted in 0.001677s" module=containerd
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11.679808183+08:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man dockerd` to refer to dm.thinpooldev section."
Apr 3 15:31:11 Docker kernel: bio: create slab <bio-2> at 2
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11.835565555+08:00" level=info msg="devmapper: Creating filesystem xfs on device docker-253:1-34265854-base, mkfs args: [-m crc=0,finobt=0 /dev/mapper/docker-253:1-34265854-base]"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11.836336636+08:00" level=info msg="devmapper: Error while creating filesystem xfs on device docker-253:1-34265854-base: exit status 1"
Apr 3 15:31:11 Docker dockerd: time="2018-04-03T15:31:11.836350296+08:00" level=error msg="[graphdriver] prior storage driver devicemapper failed: exit status 1"
Apr 3 15:31:11 Docker dockerd: Error starting daemon: error initializing graphdriver: exit status 1
Apr 3 15:31:11 Docker systemd: docker.service: main process exited, code=exited, status=1/FAILURE
Apr 3 15:31:11 Docker systemd: Failed to start Docker Application Container Engine.
Apr 3 15:31:11 Docker systemd: Unit docker.service entered failed state.
Apr 3 15:31:11 Docker systemd: docker.service failed.
Apr 3 15:31:12 Docker systemd: docker.service holdoff time over, scheduling restart.
------------------------------------------------
重點在紅字加粗部分
百度,BING 國內國際都搜過,無有效幫助資訊。
再琢磨 異常日誌,注意到 mkfs,遂手動執行了下:
mkfs.xfs -m crc=0,finobt=0 /dev/mapper/docker-253:1-34265854-base
報:
=================================
[[email protected] ~]# mkfs.xfs -m crc=0,finobt=0 /dev/mapper/docker-253:1-34265854-base
unknown option -m finobt=0
Usage: mkfs.xfs
--------------------------------
man mkfs.xfs 了下,的確沒有 -m 引數
但...查了下網路資料,發現別人的 man mkfs.xfs 資料有-m引數
問題原因:
===========================================
很明顯了:mkfs.xfs版本太低,遂更新:
yum update xfsprogs
重啟docker服務,正常!
===================================
排查這個問題用了一天...不才不才。做個記錄,希望對遇到同樣問題的你們有用。相關推薦
centos-7 yum裝docker-ce後啟動失敗
相關版本:centos-7: CentOS Linux release 7.0.1406 (Core)docker-ce: Docker version 18.03.0-ce, build 0520e24yum docker 映象:http://mirrors.aliyu
docker yum裝docker-ce啟動失敗
開發十年,就只剩下這套架構體系了! >>>
docker安裝後啟動失敗解決方法
執行systemctl start docker時出現了以下錯誤: [[email protected] ~]# systemctl start docker Job for docker.service failed because the control pr
CentOS 7 - 最小化安裝後,無法使用yum命令!!
修改 進行 習慣 配置文件 net ins 賬號 nbsp sys 剛剛最小化方式安裝了CentOS 7 後,說實話,真不習慣也不喜歡純shell方式工作,使用root賬號登入後,馬上想安裝GNOME,但是發現yum不能正常工作!!! 一,輸入安裝X Window命令,安裝
CentOS 7 - 最小化安裝後,解決無法使用yum命令問題!!
剛剛最小化方式安裝了CentOS 7 後,說實話,真不習慣也不喜歡純shell方式工作,使用root賬號登入後,馬上想安裝GNOME,但是發現yum不能正常工作!!! 一,輸入安裝X Window命令,安裝出錯!! 在shell裡面輸入命令:yum groupinstall "X Window Syste
Centos 7 安裝 Python3.5.2後yum不能正常使用的解決辦法
Centos 7後自帶Python2.7.5, 考慮到 Python3更新的內容比較多,於是安裝 Python3.5.2 來學習, 搭建了一個測試網站(hello.py) 後發現後臺還是以 Python 2.7.5 的環境執行 hello.py. 讓系統以 Python
CentOS 7 yum安裝最新 docker
要求: 機器需要能訪問外網 I. 配置docker阿里雲yum源 (直接執行下面的命令即可) cat >>/etc/yum.repos.d/docker.repo<<EO
CentOS 7 yum安裝lamp,三者位於不同服務器,並為之安裝WordPress及phpmyadmin
localhost 下載地址 wordpress 服務器 最新版 系統平臺:CentOS 7 1611WordPress下載地址phpMyAdmin下載地址(CentOS 7 建議不要安裝最新版,否則需要編譯最新的php-fpm)分別在三臺主機上安裝httpd(192.168.1.200)
CentOS 7 yum安裝配置mysql
service 軟件包 search 源文件 傳送門 首先去官網下載要用的yum源 傳送門:http://dev.mysql.com/downloads/repo/yum/ yum源文件:/home/mysql57-community-release-el7-8.noarch.rpm 是一
CentOS 7最小化安裝後找不到‘ifconfig’命令——修復小提示
rep blank running %20 route car 最小化 -a style 就像我們所知道的,“ifconfig”命令用於配置GNU/Linux系統的網絡接口。它顯示網絡接口卡的詳細信息,包括IP地址,MAC地址,以及網絡接口卡狀態之類。但是,該命令已經過時
CentOS 7 yum安裝Zabbix
yum centos 安裝 CentOS 7 yum安裝Zabbix一、Zabbix簡介zabbix是一個基於WEB界面的提供分布式系統監視以及網絡監視功能的企業級的開源解決方案。zabbix能監視各種網絡參數,保證服務器系統的安全運營;並提供靈活的通知機制以讓系統管理員快速定位/解決存在的各種問
CentOS 7 如何設置默認啟動方式為命令行模式
centos 7 如何設置默認啟動方式為命令行模式1.首先需要有GUI圖形界面,沒有進安裝yum groupinstall "GNOME Desktop" "Graphical Administration Tools" 2.設置系統啟動默認是按照圖形模式還是命令行模式加載systemctl set-defa
NetCore 2.0 應用程序在centos 7上通過docker發布
yun ima 通過 string 當前 rest 方法 .net 端口 一 安裝netcore 2.0 SDK 在centos 上面安裝netcore 2.0 與window上面是不太一樣的,註意,linux是不支持同時安裝兩個版本的.netcore SDK的,由於我
CentOS 7.2最小安裝後不能使用ifconfig,netstat等命令解決方法?
centos 7 ifconfigCentOS 7.2最小安裝後不能使用ifconfig,netstat等命令是因為默認沒有安裝net-tools包,安裝好CentOS 7.2後連接網絡,通過默認的yum源可以安裝net-tools包,就可以使用上述命令了。root@Slave02 ~]# ifconfig
CentOS 7 最小化安裝後的配置
rmi block ets 查看系統 1.8 sql 命令行 環境 www. 最小化安裝完成 CentOS 7 後,需要做些許配置,以便更好地使用。 配置網絡 首先配置本地網絡,vi /etc/sysconfig/network-scripts/ifcfg-eno*。 TY
Centos 7下安裝Docker並采用加速器進行鏡像下載加速
docker 安裝 docker拉取鏡像慢 系統版本:[root@c720120 _data]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 在Centos 7上安裝Docker$sudo yum u pdate$sudo
安裝docker後啟動失敗
root svc msm 開始 解決方法 圖片 lsi idt wid 問題: 安裝完成Docker後,打開Docker Quickstart Terminal出現 Error:creating VirtualBox 失敗。 然後直接打開Oracl
CentOS 7 yum安裝mysql
最新 mysql- mysqld 訪問 數據庫 grant serve 初始化 ren 一:去官網查看最新安裝包https://dev.mysql.com/downloads/repo/yum/二:下載MySQL源安裝包 mysql80-community-release-
CentOS 7 - 配置服務實現開機自啟動
用戶名 centos 7 ring Language get syslog emc log tst 新建系統服務描述文件 cd /etc/systemd/system sudo vim myapp.service 添加以下配置: [Unit] # 這裏添加你的服務描述 D
CentOS 7 yum安裝nginx
CentOS 7 中的 yum 沒法直接使用 yum install nginx 這個指令去安裝nginx,因為nginx這個服務不是yum庫中自帶的。圖1是官方提供的大致安裝步驟,圖2是官網提供的多個版本的nginx安裝包,下面是我給合自己的系統環境總結的安裝方法,供大家參考: