docker run -it ubuntu

docker run -it ubuntu  [command]     (interactive, t terminal)

     

As it happens, the default command specified for the Ubuntu Dockerfile is, in fact, bash:

CMD ["/bin/bash"]

默认command 可以在Dockerfile里指定。

  

posted @ 2019-03-13 09:07  you_magic  阅读(1009)  评论(0编辑  收藏  举报