但是,如果使用此选项,容器将不再运行其默认的ENTRYPOINT或CMD命令,因为entrypoint:会覆盖默认命令。
启动并进入容器 [root@iZ2zeefmdpadf6fxudttltZ ~]# docker run -it centos /bin/bash [root@665d5bc12263 /]# ls # 查看容器内的centos,基础版本,很多命令都是不完善的 bin dev etc home lib