Search code examples
dockercentos

How can I run some cut commands in centos container?


I use docker running a CentOS8 container.

I know the image is minimized, so I can not use some commands in it. such as: clear, systemctl.

[root@e07da148cc16 /]# clear
bash: clear: command not found

is there any way to install some module, so I can run it? or whether there is other not minimized CentOS image with all commands ?


Solution

  • docker run -it amazonlinux bash

    Come with basic commands and ready for you to customize (yum install) further.