I first found this command on the Internet: docker ps -a --no-trunc, the display is as follows, all fields are displayed without omission, but this is not what I want! ! !
To view the commands created at the time of a running container, you need to install a command.
1. Install python-pip
yum install python-pip
If the following situation occurs during the installation of python-pip:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.nju.edu.cn
* extras: mirrors.nju.edu.cn
* updates: mirrors.cn99.com
No package python-pip available.
Error: Nothing to do
You can run the following command first:
yum -y install epel-release
After the execution is complete, re-execute the yum install python-pip command
2. Install runlike
pip install runlike
3. View container creation commands
runlike 容器名称
4. Example: