1、拉取hello-world Image
# 拉取 hello-world镜像
docker pull hello-world
# 查看镜像列表
docker images
# 删除镜像
docker rmi -f hello-world
2、运行镜像
docker run --name docker-demo1 hello-world
如下图所示hello-world这个示例打印了hello from Docker!
3.补充说明
浏览器输入https://hub.docker.com/,在搜索框中输入hello-world,
搜索结果如下图,
同样操作,我们可以搜索tomcat、mysql、redis等其他我们想要的镜像。