skopeo
约 1 分钟阅读
- containers/skopeoGitHubcontainers/skopeocontainers/skopeo · Apache-2.0, Go · $XDGRUNTIMEDIR/containers/auth.json · | env | for | defualt | · | REGISTRYAUTHFILE | --authfile | |笔记:skopeo
- Apache-2.0, Go
- $XDG_RUNTIME_DIR/containers/auth.json
brew install skopeo # macOS Homebrew
# login insecure
skopeo login --tls-verify=false localhost:5000
# push
skopeo copy docker-daemon:server:latest docker://localhost:5000/server:latest --dest-tls-verify=false
skopeo inspect docker://registry-1.docker.io/wener/base:latest
skopeo copy docker://registry-1.docker.io/wener/base:latest oci-archive:base.tar
# 目录
# skopeo copy docker://registry-1.docker.io/wener/base:latest dir:$PWD/base
docker import base.tar| env | for | defualt |
|---|---|---|
| REGISTRY_AUTH_FILE | --authfile |
- authfile
- ${XDG_RUNTIME_DIR}/containers/auth.json
- $HOME/.docker/config.json
containers-storage:docker-referencedir:pathdocker://docker-referencedocker-archive:path[:docker-reference]docker-daemon:docker-referenceoci:path:tag- Open Container Image Layout Specification
FAQ
Unsolicited response received on idle HTTP channel starting with
- 关闭 tls-verfiy 可能会出现
- golang HTTP 处理错误
net/http: HTTP/1.x transport connection broken: malformed HTTP status code关联信息
反向链接和本文引用的外部资料。
反向链接
- Container Awesome笔记 · skopeo
Storage, Metadata, Runtime · CRI · opencontainers/runc · google/gvisor · Apache-2.0, Go · Application Kernel for Containers
- registry-auth笔记 · skopeo
credential-helpers · skopeo · $XDGRUNTIMEDIR/containers/auth.json · jib · $XDGRUNTIMEDIR/containers/auth.json · $XDGCONFIGHOME/containers/auth.json
References
GitHub
1 条- containers/skopeogithub.com/containers/skopeo