当前位置:网站首页>Install docker under windows10 (through Oracle VM VirtualBox)
Install docker under windows10 (through Oracle VM VirtualBox)
2022-07-06 16:58:00 【Xiaoxiamo】
brief introduction
Want to be in person Windows Install a... On your computer Docker, For daily development practice , At the beginning with Docker Desktop Installer install , The result is wrong Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run. So simply change the installation method , Now use DockerToolbox To install
Premise
- Get into BIOS, Turn on Virtualization , the Virtualization Technology Set to Enabled
( This self Baidu , Everyone's computer is different )
Installation steps
Download address
DockerToolbox Download address : https://get.daocloud.io/toolbox/ , Click to download the latest version
Double click the run package to run
Next
Installed in the D disc
Next
Next
Install
The final choice "Finish" that will do
Pay attention to error reporting
If you're like me , Yours Windows Installed in the environment Git, Then there will be the following error reports , Just do the following
Ignore
determine
Ignore
problem
So what is the reason for the problem we just encountered , Actually, we installed it before Git, There is a conflict here , Next, proceed as follows
double-click “Docker Quickstart Terminal” Start up Docker
If it is not solved, the following errors will occur
find Git Installed directory
For example, this is what I installed before Git The catalog of , Find the directory you installed before
Right click “Docker Quickstart Terminal” Open properties
After opening the properties , We change the following content to our own Git Installation directory
start-up Docker
Because the first time it started DockerQuickStart When you want to go from github Download a website boot2docker.iso To create default Of dockers Running environment , It's slow and easy to break , So here is another method
Will you docker toolbox In the installation path boot2docker.iso Copied to the C:\Users\ user name \.docker\machine\cache Next , Here's the picture
Next, we should pay attention to
I have seen many operations of setting environment variables on the Internet , restart , In the end, there are still problems , Here is a coquettish operation , Change directly .sh Script , Let's find D:\Program Files\Docker Toolbox Under the start.sh file
open , Change it as follows , And save :
Broken net
After saving the file , Broken net , Otherwise, I will still download , Very slowly , Finally, double-click "Docker Quickstart Terminal"
Here's a little , The following error appears , It indicates that there was an error during initialization
Get into C:\Users\ user name \.docker\machine Delete the following two directories , Restart again
Disconnect the network again , double-click "Docker Quickstart Terminal", After the following results appear (Waiting for an IP…), Open the network
If the following results appear , said , You have experienced the difficulty of ninety-nine and eighty-one , Finally, the installation is successful
Source change
stay windows10 Installed on docker, When you start using , Found that because of network problems , Image download failures often occur . however docker Provides domestic download sources . Therefore, set the image source to domestic
perform docker-machine ssh
docker-machine ssh
Modify the configuration file
sudo vi /var/lib/boot2docker/profile
–label provider=virtualbox Add the following line to the next line of :
--registry-mirror=http://hub-mirror.c.163.com/
--registry-mirror=https://registry.docker-cn.com/
--registry-mirror=https://docker.mirrors.ustc.edu.cn/
--registry-mirror=https://p31wiatp.mirror.aliyuncs.com/
:wq Save file and exit
restart docker
logout
docker-machine.exe restart
Use Xshell land
【192.168.99.100】 yes VirtualBox The Chinese name is 【default】 The virtual machine ip Address , If you feel Docker Quickstart Terminal Inconvenient to use , have access to XShell Conduct SSH Sign in Docker Environmental Science ( In fact, it's remote access default linux virtual machine )
default The default user name and password of the virtual machine are :
user name :docker
password : tcuser
ssh [email protected]
user name :docker
password :tcuser
test
Enter the following command to find mysql Mirror image
docker search mysql
Last
If you want to CMD Use in docker Words , In environment variable path Add docker That's the way to go
D:\Program Files\Docker Toolbox\
边栏推荐
猜你喜欢
TCP的三次握手和四次挥手
Some instructions on whether to call destructor when QT window closes and application stops
ByteDance technical Interviewer: what kind of candidate do I want to pick most
Solr standalone installation
Shell_ 06_ Judgment and circulation
~84 form supplement
~82 style of table
Erlang installation
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
Cmake Express
随机推荐
string. How to choose h and string and CString
Description of project structure configuration of idea
redux使用说明
Usage of insert() in vector
Li Kou leetcode 280 weekly match
After the subscript is used to assign a value to the string type, the cout output variable is empty.
Ffmpeg command line use
Solr new core
~75 background
was unable to send heartbeat
I'm "fixing movies" in ByteDance
汇编语言基础知识
Basic principles of video compression coding and audio compression coding
Codeforces Global Round 19
ByteDance technical Interviewer: what kind of candidate do I want to pick most
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
LeetCode 1584. Minimum cost of connecting all points
算数运算指令
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一