How to make the full version of centos7's docker image or where can I download it?

how to make the full version of docker image of centos7 or where can I download it?

docker official warehouse seems to be a simplified version of https://hub.docker.com/_/cent.
ip addr show and other commands are not available, I do not know what has been streamlined.

question:
I want a full version or Minimal ISO version of the official website. Where can I download it off the shelf? If not, can you make it yourself?

Aug.27,2021

sudo docker search centos

docker

you can check the introduction to see which version meets your requirements. If not, download the image, install it internally, and then commit it into a new image.
specific command:

sudo docker search centos
sudo docker pull ansible/centos7-ansible
sudo docker run  -it ansible/centos7-ansible:latest bash
bash
sudo apt-get install XXX 
sudo docker commit -m "" ansible/centos7-ansible:v1

do you have any misunderstandings about docker? Docker is not a virtual machine, and in principle you should not interactively enter a docker container and type commands like a virtual machine. So all those commands are deleted in order to reduce the capacity of the mirror.

and centos itself is not a particularly suitable base image, official best practices recommend using debian, and recommending alpine if possible.

if what you need is a container-based virtual machine, then LXD or LXC learn

Menu