Install the software docker vessel and regenerate the mirror

1, first of all you should have run into the container:

docker exec -it [vessel or container name ID] / bin / bash

2, see the Linux version of the image used in containers

cat /etc/issue

I am here to download inside a container of running the Welcome to Alpine Linux 3.10  version,

Alpine Software Manager using apk

Centos software manager using yum

ubuntu software manager using apt-get

3, warehouse management update apk

apk update

4, the installation software

apk add tools such as Name: 
apk add ipmitool

5, or submit the modified container installed software, generate a new image

docker commit <container_id> <image_name>
container_id: Modify the container ID
image_name: image name can define their own 

Note: can then packetizes the generated image, ported to other host operation (particularly an offline environment).

Guess you like

Origin www.cnblogs.com/fanlong0212/p/12297496.html