启动Docker容器测试helloworld及Docker和虚拟机的区别

启动docker后台容器,测试运行helloWorld

//使用下面的命令运行helloWorld
docker run hello-world
//成功会出现下方信息
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest: sha256:4df8ca8a7e309c256d60d7971ea14c27672fc0d10c5f303856d7bc48f8cc17ff
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

Docker和虚拟机的区别

posted @ 2019-11-28 12:59  难得糊涂1998  阅读(241)  评论(0编辑  收藏  举报