建议看看这个image https://hub.docker.com/repository/docker/cucker/get_command_4_run_container
Usage:
# Command alias
echo "alias get_run_command='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock cucker/get_command_4_run_container'" >> ~/.bashrc
. ~/.bashrc
# Excute command
get_run_command <CONTAINER>
![240](https://upload.jianshu.io/users/upload_avatars/14773634/60ec7fdb-40a5-4977-b54c-36cfe8147bfe.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)