Docker在Windows下的安装使用与常见问题
2017-07-19 20:01
399 查看
1. Docker for Windows安装
官方文档及下载建议下载稳定版Stable channel
2017-7-19 官网 InstallDocker.msi下载
安装条件
Docker for Windows 需要安装系统版本 Windows 10 64位 专业版 和 Microsoft Hyper-V(Docker安装包自带,不需额外下载).
如果你的系统不满足以上条件请安装 2017-7-19 官网 Docker Toolbox下载, 使用了 Oracle Virtual Box 替代 Hyper-V
模拟开发环境不建议安装使用DockerToolbox ->Win10家庭版升级至Win10专业版,控制面板-系统和安全-系统-更换产品密钥 “VK7JG-NPHTM-C97JM-9MPGT-3V66T”
Hyper-V需开启硬件虚拟化 教程
2. 常见安装及运行问题
安装Docker for Windows后会提示安装Hyper-V虚拟机,安装完成后需重启电脑才可使用安装完成重启后自动启动docker成功后,右键右下角docker图标-settings进入设置如图
选择共享盘符,勾选后需输入你电脑PC用户开机登录密码
若偶尔docker for windows启动失败,属抽风正常现象,请重新启动docker或重启电脑,仍无法启动请考虑尝试恢复默认设置(谨慎!将清空已安装好的所有镜像)
Toolbox版本安装后启动需下载镜像,请保持网络通畅,等待下载完毕后将启动成功
3. Docker的使用
常用命令docker ps -a 查看所有运行镜像
docker images 查看已安装镜像
docker start/stop CONTAINER_ID 启动或关闭相应镜像
4. What is docker 什么是docker
OverviewDocker is the world’s leading software container platform. Developers
use Docker to eliminate “works on my machine” problems when
collaborating on code with co-workers. Operators use Docker to run and
manage apps side-by-side in isolated containers to get better compute
density. Enterprises use Docker to build agile software delivery
pipelines to ship new features faster, more securely and with
confidence for both Linux and Windows Server apps.
What is a Container?
Using containers, everything required to make a piece of software run
is packaged into isolated containers. Unlike VMs, containers do not
bundle a full operating system - only libraries and settings required
to make the software work are needed. This makes for efficient,
lightweight, self-contained systems and guarantees that software will
always run the same, regardless of where it’s deployed.
Docker For Developers
Docker automates the repetitive tasks of setting up and configuring
development environments so that developers can focus on what matters:
building great software.
docker for developers Developers using Docker don’t have to install
and configure complex databases nor worry about switching between
incompatible language toolchain versions. When an app is dockerized,
that complexity is pushed into containers that are easily built,
shared and run. Onboarding a co-worker to a new codebase no longer
means hours spent installing software and explaining setup procedures.
Code that ships with Dockerfiles is simpler to work on: Dependencies
are pulled as neatly packaged Docker images and anyone with Docker and
an editor installed can build and debug the app in minutes.
待编辑…
相关文章推荐
- windows 10 安装和使用中5个常见问题
- Docker安装使用和常见问题解决方案
- Windows 7下安装 Docker(解决如何始终使用一个虚拟机VM的问题 )
- Windows 7下使用wubi安装Ubuntu9.04+新手常见问题
- Windows使用cygwin安装Hadoop-0.20.2的伪分布式模式常见问题
- charles抓包的安装,使用说明以及常见问题解决(windows)
- [完美解决]如何在windows安装docker toolbox,使用tensorflow,Jupyter Notebook,各种问题的解决方案
- aspjpeg组件安装、使用常见问题
- cygwin移植linux程序到windows及在eclipse中使用cygwin的常见问题
- OP:windows 2008 安装之后无线网无法使用问题解决(Windows 2008 Wireless)
- Windows 8 在虚拟机上安装步骤和常见问题。 系统下载,官方 汉化包下载。
- Windows Live Writer 绿色便携版(使用问题及安装)(转)
- Windows Live Writer 绿色便携版(使用问题及安装)(转)
- windows 2008初体验常见问题: 无线网络"没有正确配置为使用IP协议" 错误解决办法
- coreseek在windows安装问题和使用步骤
- 在Windows上安装Python2.6+MySQL 的常见问题及解决方法
- Windows下ANDROID应用开发环境安装过程及常见问题
- 安装使用常见问题
- 在Windows上安装Python+MySQL 的常见问题及解决方法
- freePBX使用及安装过程中的常见问题