参考文档:
http://developerblog.redhat.com/2014/05/15/practical-introduction-to-docker-containers/
中的create base image部分
1.Create the tar files for your file system, simply could be
-
tar --numeric-owner --exclude=/proc --exclude=/sys -cvf centos6-base.tar /
2.Transfer the tar file to other docker system if not installed locally and import it
-
cat centos6-base.tar | docker import - centos6-base
3. Now you can verify by running it.
-
docker run -i -t centos6-base cat /etc/redhat-release
阅读(711) | 评论(0) | 转发(0) |