当前位置:网站首页>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\
边栏推荐
- (multiple methods, need to continue to see) 7-11 go deep into the tiger's Den
- Shell_ 02_ Text three swordsman
- 8086 内存
- Continue and break jump out of multiple loops
- ~68 Icon Font introduction
- 7-10 punch in strategy
- Monomer application concept
- TCP的三次握手和四次挥手
- Error: case label `15 'not within a switch statement
- Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
猜你喜欢
The 116 students spent three days reproducing the ByteDance internal real technology project
7-5 blessing arrived
Description of project structure configuration of idea
ByteDance technical Interviewer: what kind of candidate do I want to pick most
The daemon thread starts redis and modifies the configuration file
~86m rabbit practice
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
字节跳动技术新人培训全记录:校招萌新成长指南
数据传送指令
随机推荐
MySQL数字函数
~85 transition
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
~86m rabbit practice
Eureka high availability
Ffmpeg command line use
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
[unsolved] 7-15 shout mountain
README. txt
LeetCode 1557. The minimum number of points that can reach all points
~73 other text styles
MySQL字符串函数
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
MySQL日期函数
Shell_ 01_ data processing
LeetCode 1584. Minimum cost of connecting all points
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
@RequestMapping、@GetMapping