建議看看這個(gè)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>
天使力2100 評(píng)論自獲取docker 容器啟動(dòng)命令