step1
docker run --name repo alpine/git clone https://github.com/docker/getting-started.git
docker cp repo:/git/gitting-started/ .
step2
cd getting-started
docker build -t docker101tutorial .
step3
docker run -d -p 80:80 --name docker-tutorial docker101tutorial
step4
docker tag docker101tutorial {userName}/docker101tutorial
docker push {userName}/docker101tutorial
Other
常用的目录
C:\用户\username\AppDatea\Roaming\Docker
C:\用户\username\.docker
C:\Program Files\Docker\Docker\resources
修改镜像
“registry-mirrors”: [“https://alzgoonw.mirror.aliyuncs.com”]