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

获取镜像

输出docker pull hello-world获取hello-world镜像:

docker运行第一个容器hello-world

 

启动容器

使用命令docker run hello-world运行hello-world镜像启动一个容器,如下图:

docker运行第一个容器hello-world

 

 

相关文章: