docker报Error response from daemon: Unknown filesystem
巴扎黑
巴扎黑 2017-04-21 11:15:28
0
2
1072

环境:

centos6.5 2.6.32-431.29.2.el6.x86_64 docker version **Client version: 1.1.2 Client API version: 1.13 Go version (client): go1.2.2 Git commit (client): d84a070/1.1.2 Server version: 1.1.2 Server API version: 1.13 Go version (server): go1.2.2 Git commit (server): d84a070/1.1.2**

在使用docker build --rm -t aaa .后报错

Sending build context to Docker daemon 2.56 kB Sending build context to Docker daemon Step 0 : FROM centos:centos6 ---> 68eb857ffb51 Step 1 : RUN yum install openssh-server -y 2014/09/22 10:27:16 Unknown filesystem type on /dev/mapper/docker-8:3-785178-ad2bb13ca9392281568e9a87a1d91d7c2408c0a88b48c8a7c75554443154b82e-init

接着运行docker run --rm -ti centos:centos6 /bin/sh也报错

Error response from daemon: Unknown filesystem type on /dev/mapper/docker-8:3-785178-8d47e8e5b5481f325bb66974c758df40895c35d915c0ac11d892db36400c2453-init

如果在build前执行run可以正常使用。
新人无从下手

巴扎黑
巴扎黑

reply all (2)
PHPzhong

I also encountered such a problem a few days ago. Are you using redhad6 or centos6 on the host machine? It is because of version incompatibility. I later switched to centos7 and installed docker to create images and run containers and never encountered such problems again.

    迷茫

    To install Docker in the RedHat family (including CentOS and Fedora) series, you need kernel 3.8 or above, and you also need to install Device Mapper. In addition, CentOS6 and RedHat6 also need to install EPEL. List a rough step for your reference:

    #检查内核版本 uname -a Linux darknight.example.com 3.10.9-200.fc19.x86_64 #1 SMP Wed Aug↩ 21 19:27:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux #检查device-mapper ls -l /sys/class/misc/device-mapper lrwxrwxrwx 1 root root 0 Oct 5 18:50 /sys/class/misc/device-↩ mapper -> ../../devices/virtual/misc/device-mapper #如果没有安装device-mapper,请参考下面的命令: sudo yum install -y device-mapper #安装DeviceMapper sudo modprobe dm_mod #加载DeviceMapper模块 #CentOS6还需安装EPEL sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386↩ /epel-release-6-8.noarch.rpm #最后安装Docker sudo yum -y install lxc-docker
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!