Using Supermin to make CentOS Docker mirrors

Source: Internet
Author: User
Tags echo 7 docker run
using Supermin to make CentOS Docker mirrors Install the supermin on the CentOS7
$ sudo yum install-y supermin*
Create MIRROR (The following command needs to run with root)
# supermin5-v--prepare bash coreutils-o supermin.d
# supermin5-v--build--format chroot supermin.d-o
# 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
Viewing mirrors
$ sudo docker images
REPOSITORY                    TAG                 IMAGE ID            CREATED              SIZE
kongxx/centos-7               Latest              8c8f006aac6b        About a minute ago   167 MB
...
Run Container
$ sudo docker run-i-t kongxx/centos-7/bin/bash bash-4.2# cat/etc/redhat-release centos
Linux release 7.2.1511 (Core)

Reprint please indicate this link form link
This article link: http://blog.csdn.net/kongxx/article/details/52606041

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.