- 🔭 目前主要使用Golang参与容器(Kubernetes)相关的开发
- 📫 与我联系的最佳方式是给我发送电子邮件。
- 🌱 欢迎关注我的个人公众号:
silenceper / docker-tar-push Goto Github PK
View Code? Open in Web Editor NEW[Under Development]push your docker tar archive image without docker
License: Apache License 2.0
[Under Development]push your docker tar archive image without docker
License: Apache License 2.0
command:./docker-tar-push ./nginx-alpine.tar --registry=https://192.168.66.232/line19 --log-level=4 --skip-ssl-verify=true --username=admin --password=holly***
docker-tar-push/pkg/push/push.go
Line 149 in 3364a4c
官方API介绍如下:
Existing Layers
The existence of a layer can be checked via a HEAD request to the blob store API. The request should be formatted as follows:
HEAD /v2/<name>/blobs/<digest>
If the layer with the digest specified in digest is available, a 200 OK response will be received, with no actual body content (this is according to http specification). The response will look as follows:
200 OK
Content-Length:
Docker-Content-Digest:
When this response is received, the client can assume that the layer is already available in the registry under the given name and should take no further action to upload the layer. Note that the binary digests may differ for the existing registry layer, but the digests will be guaranteed to match.
另外,ParseImageAndTag函数中,repo有可能在最前面包含ip:port/xxx/xx:1.0.0 这样。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.