一、思考❓❔
1.什么是Docker?
![740cf148b73534158fbb62bbb1aa7ed1.png](https://i-blog.csdnimg.cn/blog_migrate/47145a59162d2872344a18bd28c0bb89.png)
- 装应用的容器
- 开发、测试、运维都偏爱的容器化技术
- 轻量级
- 扩展性
- 一次构建、多次分享、随处运行
2.安装Docker难不难?
![03f47515ffe92ba80098ef6523f36bbf.png](https://i-blog.csdnimg.cn/blog_migrate/7c35235be43950f1fe89ec96f6276e23.png)
So easy!
此文看过之后,读者一定会有一个docker环境
二、Windows上安装Docker
![ee04dc446a3959ab02ae9ab1106a459c.png](https://i-blog.csdnimg.cn/blog_migrate/53466bc259d76344a656a37d6d0be1a0.png)
1.在Windows 10上安装Docker
1.系统需求
![b1fa41dcbf75018617ae73105ba9a16e.png](https://i-blog.csdnimg.cn/blog_migrate/a7c283689df700e77a6917ed60dffe9f.png)
2.下载安装包
https:// download.docker.com/win /stable/Docker%20for%20Windows%20Installer.exe
3.按照安装向导next即可
4.运行
- 不会自动启动
- 在开始菜单搜索Docker, 打开即可
![96fdfe86bc42dae53e9780be0a1cf4e1.png](https://i-blog.csdnimg.cn/blog_migrate/31656d4b00ff1332e597319eed95bbc6.png)
细节配置, 可参考这个链接( https:// docs.docker.com/docker- for-windows/#docker-settings-dialog )
5.测试是否安装成功
在CMD中运行如下命令, 有显示版本号或者显示"Hello from Docker!", 则代表安装成功
> docker --version
Docker version 19.03.1
> docker run hello-world
docker : Unable to find image 'hello-world:latest' locally
...
latest:
Pulling from library/hello-world
ca4f61b1923c:
Pulling fs layer
ca4f61b1923c:
Download complete
ca4f61b1923c:
Pull complete
Digest: sha256:97ce6fa4b6cdc0790cda65fe7290b74cfebd9fa0c9b8c38e979330d547d22ce1
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
</