阿里Dragonfly docker p2p 镜像分发试用
阿里的Dragonfly p2p 镜像分发已经开源了,同时加入了cncf ,很给力
拉取镜像
docker pull registry.cn-hangzhou.aliyuncs.com/alidragonfly/supernode:0.2.0
运行
docker run -d -p 8001:8001 -p 8002:8002 registry.cn-hangzhou.aliyuncs.com/alidragonfly/supernode:0.2.0
安装客户端并配置环境变量
- mac
wget http://dragonfly-os.oss-cn-beijing.aliyuncs.com/df-client_0.2.0_darwin_amd64.tar.gz
tar -zxf df-client_0.2.0_linux_amd64.tar.gz
export PATH=$PATH:$HOME/df-client/
拉取镜像测试
- 启动dfsaemon 需要配置refistry
nohup dfdaemon --registry https://index.docker.io > /dev/null 2>&1 &
- 添加dockerd reegistry-mirrors
"registry-mirrors": ["http://127.0.0.1:65001"]
mac 如下:
- 拉取镜像测试
docker pull nginx:latest
参考资料
https://github.com/dragonflyoss/Dragonfly/blob/master/docs/quick_start/_index.md