A, Docker installation
Docker on different Windows systems, the installation procedure is the same
Win10 installation is relatively simple, the official website to register an account on, download the installer on it.
windows 10 Docker installation:
Win Service 2016 Docker installation
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force # specified minimum installation package version Nuget
Install-Module -Name DockerMsftProvider -Force # install module docker
Install-Package -Name docker -ProviderName DockerMsftProvider -Force #安装docker包
If you can not find the installation package, see: https: //www.cnblogs.com/netsmallhao/articles/6089420.html
a, find the following configuration file C: \ Users \ Administrator \ AppData \ Local \ Temp \ 2 \ DockerMsftProvider \ DockerDefault_DockerSearchIndex.json
b, download the configuration file corresponding version
c, run the following command
Find-Package –roviderName DockerMsftProvider | Install-Package -Verbose
Restart-Computer -Force # Restart
After the successful installation interface:
docker run microsoft/dotnet-samples:dotnetapp-nanoserver
=================================================================================================================
See docker ps -a log of all container to exit the container abnormal manner will have non-zero status code
container docker ps view running
docker stop <container-id> stop a container
docker kill <container-id> kill a container
docker rm <container-id> delete a container
docker rmi <image-id> remove a mirror
vs2019, make a docker image file
docker build -t dockerdemo03 .
Behind this command, there must be a dot
After making a mirror, a mirror to start:
docker run -d -p 9990:80 dockerwebapplication11
Browser with IP access:
http://10.0.75.1:9990/api/values
route -p add 192.168.11.89 MASK 255.255.255.240 10.0.75.1
http://10.0.75.1:9990/api/values
http://192.168.11.89:9990/api/values
netsh int ipv4 reset
at the command prompt enter the following command there:
netsh the RESET Cataog the Winsock
netsh int ip reset.log the RESET HIT
restart the computer, you can
docker build -t dockerdemo03 .
Behind this command, there must be a dot
After making a mirror, a mirror to start:
docker run -d -p 9990:80 dockerwebapplication11
Browser with IP access:
http://10.0.75.1:9990/api/values
route -p add 192.168.11.89 MASK 255.255.255.240 10.0.75.1
http://10.0.75.1:9990/api/values
http://192.168.11.89:9990/api/values
netsh int ipv4 reset
at the command prompt enter the following command there:
netsh the RESET Cataog the Winsock
netsh int ip reset.log the RESET HIT
restart the computer, you can