测试nydusd # 1. 更新nydus-snapshotter和image-service https://github.com/sctb512/nydus-snapshotter.git 仓库 ```shell= git checkout auth-through make make install ``` https://github.com/sctb512/image-service.git 仓库 ```shell= git checkout mirror-performance-fix make make install ``` # 2. 配置文件 /etc/nydus/config.json mirror添加配置项 `"auth_through": true`: ```yaml= "mirrors": [ { "host": "http://127.0.0.1:65001", "auth_through": true, "headers": { "X-Dragonfly-Registry": "https://cr-cn-guilin-boe.volces.com" } } ], ``` # 3. 复现 ```shell= nerdctl --snapshotter nydus run --rm -it xxx ``` 启动容器后等一段时间(大约20-30分钟) 在容器中执行: ```shell= ls ``` 查看nydusd日志: /var/lib/containerd-nydus/logs/xxx/nydusd.log ```shell= cat nydusd.log | grep -e "Request:" -e "resp.headers:" -e "token" -e "mirror server" -e "401 Unauthorized" ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up