我正在尝试将标记的图像推送到我的本地注册表,但失败了。
我在用着适用于 Windows 的 Docker 桌面。
C:\用户\XXXX>docker push localhost:5000/test
The push refers to repository [localhost:5000/test]
687914c021dc: Pushed
922472a9958a: Pushed
273db4b66a2d: Skipped foreign layer
received unexpected HTTP status: 500 Internal Server Error
在日志中我有这个;
192.168.18.89 - - [16/May/2019:12:52:02 +0000] "POST /v2/test/blobs/uploads/ HTTP/1.1" 500 253 "" "docker/18.09.2 go/go1.10.6 git-commit/6247962 os/windows arch/amd64 UpstreamClient(Docker-Client/18.09.2 \\(windows\\))"
time="2019-05-16T12:52:02.0881065Z" level=error msg="response completed with error" err.code=unknown err.detail="filesystem: truncate /var/lib/registry/docker/registry/v2/repositories/test/_uploads/74edc5c6-375f-4482-a9cc-29e982720bc1/startedat: permission denied" err.message="unknown error" go.version=go1.11.2 http.request.host="localhost:5001" http.request.id=73b1b50c-06e0-4ff0-82bc-995b8ba20209 http.request.method=POST http.request.remoteaddr="192.168.18.89:52000" http.request.uri="/v2/test/blobs/uploads/" http.request.useragent="docker/18.09.2 go/go1.10.6 git-commit/6247962 os/windows arch/amd64 UpstreamClient(Docker-Client/18.09.2 \(windows\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=27.963ms http.response.status=500 http.response.written=253 vars.name=test
Windows 版 Docker 桌面社区 // 版本:2.0.0.3 (31259) // 引擎:18.09.2