安装: 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 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
本文出自 “linux系统维护” 博客,请务必保留此出处http://linuxadmin.blog.51cto.com/2683824/1701269
原文地址:http://linuxadmin.blog.51cto.com/2683824/1701269