Docker

Docker 允许你在容器内运行应用程序, 使用 docker run 命令来在容器内运行一个应用程序。

 

runoob@runoob:~$ docker run -i -t ubuntu:15.10 /bin/bash
root@dc0050c79503:/#


首先,我们需要确认容器有在运行,可以通过 docker ps 来查看

runoob@runoob:~$ docker ps

runoob@runoob:~$ docker logs 2b1b7a428627
runoob@runoob:~$ docker stop amazing_cori


来源
https://www.runoob.com/docker/docker-hello-world.html
posted @ 2019-05-22 10:58  简单飞扬-  阅读(157)  评论(0编辑  收藏  举报