环境:
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可以正常使用。
新人无从下手
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: