最开始是在win7上面折腾docker,可是百般尝试,都不成功,就只能升级系统到win10。
win10系统安装docker toolbox,最方便;下载地址 https://www.docker.com/products/docker-toolbox 或 https://get.daocloud.io/toolbox/
下载exe安装包,点击安装,安装完后增加如下三个软件:
609782-20160622120942141-1229743714.png第一次启动docker,会下载boot2docker.iso,下载信息中有缓存目录和下载地址。
092703_iBoW_2621890.png拷贝下载地址到浏览器下载,拷贝到cache目录,重新启动docker,就可以了
609782-20160622121203797-1226664151.png访问私有仓库
私有仓库地址为:192.168.1.5:5000
推送镜像到私有仓库,报证书错啊!
$ push 192.168.1.5:5000/hello-world
The push refers to a repository [192.168.1.52:5000/hello-world]
Get https://192.168.1.52:5000/v2/: x509: cannot validate certificate for 192.168.1.52 because it doesn't contain any IP SANs
进入docker虚拟机, 用linux远程链接工具登陆虚拟机,账号:docker,密码:tcuser,端口:22,ip:192.168.99.100
修改/var/lib/boot2docker/profile文件,然后重启docker,如下
CK43{8C08U3ILE{XSP79OK9.png现在就可以访问私有仓库了!!!
linux私有仓库配置
修改 /etc/docker/daemon.json,增加:
"insecure-registries": [192.168.1.52:5000],
网友评论