1.查看存储引擎:
# docker info
需要是 devicemapper
Images: 46
Storage Driver: devicemapper
2.新建一个 容器
# docker run -itd -p 5001:5001 --name=centos7 centos
3.查看ip
# docker inspect centos7 | grep -i add
4.ssh 连接 并查看 df