安装: 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 [[email protected] /]# mkdir /data [[email protected] /]# exit docker commit -m "mkdir /data" -a "wangyl" e302b24977d3 centos:v2 [[email protected]_test4 devicemapper]# docker images 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
时间: 2024-10-19 13:20:55