Download DockerToolbox-18.03.0-ce.exe installation package, and the installation (Download http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/)
Double-click to start the installation: we do not check
the next step select the installation directory
Next (Note that this step if you do not git will check the local Git for Windows.
local If you do not have installed git checked)
next
next
successful installation
successful installation will appear the following three icons
, double-click open Oracle VM VirtualBox
and then double-click Docker Quickstart Terminal, will automatically install the default virtual machine after opening, there will be a few minutes waiting time
finished, double-click Docker Quickstart Terminal may give rise to a bug in the following figure:
If you encounter this problem not panic
shortcuts exist question, the shortcut points to the project "bash.exe" has been changed to move goods, so this shortcut does not work
you can guess to be a shortcut to the specified path is wrong, because I have installed Git prior to installing Docker Toolbox
when installing Docker Toolbox will be no check to install Git for Windows, a problem arises in this
It uses git / bin / bash.exe to open, my Git installation directory is not in the C drive, the path is wrong
Solution Copy Right view its properties put a target out into a notepad will use this position need to be modified for your own git position (If you do not own git enter cmd to open the black window where git installed where)
copy of that goal before modifying
my Git under the G drive, so I write here is that this looks like the following
"G: \ git \ Git \ bin \ bash.exe --login -i" G: \ Docker \ Docker Toolbox \ start.sh "
we can adjust this according to their own installation configuration path
you are finished click apply, OK, and then double-click the icon to
double-click Docker Quickstart Terminal will then appear again as
if the network is not good, then there will be a problem
Error the Create the Check-pre with: "the Read tcp 192.168.43.151:49696->52.216.176.107:443: WSARecv:. A socket Operation attempted Displays to WAS AN Network unreachable"
Looks like something in the STEP'Checking IF Wentworth Wrong Machine default exists' ... Press any key to continue ...
solution:
here I download a good back up what, to prevent future use.
下载好后放到C:\Users.docker\machine\cache文件夹里面就行了。(关闭再次启动)
出现下面图片说明你安装成功了
可以试着输入一些docker 命令试试
搜索镜像:docker search xxx
列出当前系统存在的镜像:docker images
拉取镜像:docker pull xxx
xxx是具体某个镜像名称(格式 REPOSITORY:TAG)
REPOSITORY:表示镜像的仓库源,TAG:镜像的标签
运行一个容器:docker run -d --name “david-rbmq” -p 5672:5672 -p 15672:15672 rabbitmq:management
docker run - 运行一个容器
-d 后台运行
-p 端口映射
rabbitmq:management (格式 REPOSITORY:TAG),如果不指定tag,默认使用最新的
–name “xxx” 启动的服务设定名称
列举当前运行的容器:docker ps
检查容器内部信息:docker inspect 容器名称 docker inspect david-rbmq
删除镜像:docker rmi IMAGE_NAME
强制移除镜像不管是否有容器使用该镜像 增加 -f 参数,
停止某个容器:docker stop 容器名称
启动某个容器:docker start 容器名称
Remove a container: docker rm container name (container must be stopped)
Delete Delete vessels rmi mirror with rm
We look at this screen appears Oracle VM VirtualBox, are already installed default virtual machine has been installed successfully,
if encounter other problems, please leave a message will be seen helping solve! ! !
java endless