Use supermin to make CentOS Docker image

Use supermin to make CentOS Docker image#

Install supermin on CentOS7

$ sudo yum install -y supermin*

Create a mirror (the following commands need to be run as root)

# 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

View mirror##

$ sudo docker images
REPOSITORY                    TAG                 IMAGE ID            CREATED              SIZE
kongxx/centos-7               latest              8c8f006aac6b        About a minute ago   167 MB
...

Run the 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)

Please indicate the link to this article in the form of a link
Link to this article: http://blog.csdn.net/kongxx/article/details/52606041

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

Use supermin to make CentOS Docker image
How to install and use Docker on CentOS 7
Install and use docker under CentOS 6.8
Use VMware15 to install Linux (CentOS6.5)
Use Python to make airplane war games
Create CentOS Docker image with httpd service
Centos8 use yum to install rabbitmq tutorial
CentOS Discovery Road 2---Use rpm to install JDK
CentOS 7 install Docker
CentOS7 install Docker
How to install and use Docker on Ubuntu 20.04
How to use Docker data volumes on Ubuntu 14.04
How to install and use Composer on CentOS 8
Docker installation (CentOS7 installation)
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS7 docker installation
How to install and use Curl on CentOS 8
Use command to clear specific hostname in CentOS7
CentOS 6 install Docker
Centos8 install Docker
How to install Docker CE on RHEL 8 / CentOS 8
How to install and use Docker on Ubuntu 16.04
Use Rancher to build a K8s cluster under CentOS7
How to install and use Cockpit on CentOS 8/RHEL 8
How to quickly install docker on Linux (Centos version)
How to use Let's Encrypt to protect Nginx on CentOS 8
Install Docker on Centos7
Centos 6.4 python 2.6 upgrade to 2.7
CentOS 7 install Docker service
Centos 6.4 python 2.6 upgrade to 2.7
CentOS6.5 upgrade kernel to 3.10.28
CentOS 8.0 installs docker error
CentOS 8-dnf install docker
Use RapidSVN on CentOS7
install Docker on centos6.5
CentOS 5 to CentOS 5.8 YUM source
Docker CentOS installation method
CentOS 7 install Docker CE
Centos7 docker installation details
Use Jexus 5.8.2 to deploy and run Asp.net core under Centos