文章目录
Docker For Windows Introduction
声明: 此文档适用于 win10 系统上安装使用 Docker,win10 及以上推荐安装 docker for windows,win10 以下安装 docker Toolbox
Requirements
- Windows 10
- shell 推荐使用 git bash
- Docker Desktop Installer (win10以上使用,win10以下找docker Toolbox,后面有博客链接,有兴趣和需要的小伙伴可以去尝试)
Install docker for windows
参考菜鸟: https://www.runoob.com/docker/windows-docker-install.html
Config Mirror Accelerator
菜鸟: https://www.runoob.com/docker/docker-mirror-acceleration.html
Operation Docker
关于 Docker 镜像的操作,以及容器的操作,网上有很多,这里可以提供几个链接,希望有所帮助 🌝
🔗 docker 官方文档:https://docs.docker.com/get-started/
🔗 一小时入门 Docker: https://zhuanlan.zhihu.com/p/23599229
🔗 菜鸟—docker安装ubuntu: https://www.runoob.com/docker/docker-install-ubuntu.html
🔗 win10 以下使用:docker Toolbox : https://blog.csdn.net/vitaair/article/details/80894890
Error
docker run -it ubuntu /bin/bash
Except: … file not found- 原因:bash 路径问题
- 解决:更改命令为:
docker run -it ubuntu D:Program files/Git/usr/bin/bash
- Except: … "/Program/ file not found
- 原因: "安装路径中:“programs files” 路径中出现空格
- Except: … "/Program/ file not found
- 再次解决:
- 将
D:Program files/Git/usr/bin
添加到环境变量中,由于公司电脑没有给予超级管理员权限,只能添加路径到 用户的环境变量中; - 更改命令为:
docker run -it ubuntu bash
完美运行!
- 将
- 更改命令为:
docker run -it ubuntu bash
完美运行!