环境:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
在使用docker build --rm -t aaa .
后报错
1 2 3 4 5 6 7 |
|
接着运行docker run --rm -ti centos:centos6 /bin/sh
也报错
1 2 |
|
如果在build前执行run可以正常使用。
新人无从下手
PHPz2017-04-21 11:17:28
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.
迷茫2017-04-21 11:17:28
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|