安裝: yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm yum install docker-io docker -d 問題: docker: relocation error: docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference 解決: yum upgrade device-mapper-libs -y /etc/init.d/docker start docker pull centos docker run -ti centos /bin/bash [root@e302b24977d3 /]# mkdir /data [root@e302b24977d3 /]# exit docker commit -m "mkdir /data" -a "wangyl" e302b24977d3 centos:v2 [root@wangyl_test4 devicemapper]# docker p_w_picpaths REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE centos v2 822d8c52d05f 13 seconds ago 172.3 MB centos latest 0f73ae75014f 4 weeks ago 172.3 MB hello-world latest af340544ed62 9 weeks ago 960 B 導出: docker save -o centos_wyl.tar centos:v2 導入: docker load < centos_wyl.tar