$ sudo yum install -y supermin*
# supermin5 -v --prepare bash coreutils -o supermin.d
# supermin5 -v --build --format chroot supermin.d -o appliance.d
# echo 7> appliance.d/etc/yum/vars/releasever
# tar --numeric-owner -cpf centos-7.tar -C appliance.d .
# cat centos-7.tar | docker import- kongxx/centos-7
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
kongxx/centos-7 latest 8c8f006aac6b About a minute ago 167 MB
...
$ sudo docker run -i -t kongxx/centos-7/bin/bash
bash-4.2# cat /etc/redhat-release
CentOS Linux release 7.2.1511(Core)
この記事へのリンクをリンクの形で示してください
この記事へのリンク:[http://blog.csdn.net/kongxx/article/details/52606041](http://blog.csdn.net/kongxx/article/details/52606041)
( adsbygoogle = window.adsbygoogle || []).push({});
Recommended Posts