mirror of
https://github.com/containers/skopeo.git
synced 2025-10-22 03:24:25 +00:00
Show (skopeo copy) and (skopeo delete) in README.md
This commit is contained in:
24
README.md
24
README.md
@@ -3,7 +3,11 @@ skopeo [ - e.g. - which tags are available for the given repository? which labels the image has?
|
a repository or a tag before pulling it (using disk space) - e.g. - which tags are available for the given repository? which labels the image has?
|
||||||
@@ -41,6 +45,24 @@ $ skopeo inspect docker://docker.io/fedora:rawhide | jq '.Digest'
|
|||||||
"sha256:905b4846938c8aef94f52f3e41a11398ae5b40f5855fb0e40ed9c157e721d7f8"
|
"sha256:905b4846938c8aef94f52f3e41a11398ae5b40f5855fb0e40ed9c157e721d7f8"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Copying images
|
||||||
|
-
|
||||||
|
`skopeo` can copy container images between various storage mechansism,
|
||||||
|
e.g. Docker registries (including the Docker Hub), the Atomic Registry,
|
||||||
|
and local directories:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ skopeo copy docker://busybox:1-glibc atomic:myns/unsigned:streaming
|
||||||
|
$ skopeo copy docker://busybox:latest dir:existingemptydirectory
|
||||||
|
```
|
||||||
|
|
||||||
|
Deleting images
|
||||||
|
-
|
||||||
|
For example,
|
||||||
|
```sh
|
||||||
|
$ skopeo delete docker://localhost:5000/imagename:latest
|
||||||
|
```
|
||||||
|
|
||||||
Private registries with authentication
|
Private registries with authentication
|
||||||
-
|
-
|
||||||
When interacting with private registries, `skopeo` first looks for the Docker's cli config file (usually located at `$HOME/.docker/config.json`) to get the credentials needed to authenticate. When the file isn't available it falls back looking for `--username` and `--password` flags. The ultimate fallback, as Docker does, is to provide an empty authentication when interacting with those registries.
|
When interacting with private registries, `skopeo` first looks for the Docker's cli config file (usually located at `$HOME/.docker/config.json`) to get the credentials needed to authenticate. When the file isn't available it falls back looking for `--username` and `--password` flags. The ultimate fallback, as Docker does, is to provide an empty authentication when interacting with those registries.
|
||||||
|
Reference in New Issue
Block a user