Add --no-creds flag to skopeo inspect

Follow PR #433
Close #421

Currently skopeo inspect allows to:
Use the default credentials in $HOME/.docker.config
Explicitly define credentials via de --creds flag

This implements a --no-creds flag which will query docker registries anonymously.

Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
juanluisvaladas
2019-05-03 13:30:19 -04:00
committed by Qi Wang
parent 0a2a62ac20
commit 07287b5783
8 changed files with 34 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ _skopeo_copy() {
local boolean_options="
--dest-compress
--remove-signatures
--src-no-creds
--dest-no-creds
"
local transports="
@@ -73,6 +75,7 @@ _skopeo_inspect() {
local boolean_options="
--raw
--tls-verify
--no-creds
"
local transports="
@@ -115,6 +118,7 @@ _skopeo_delete() {
"
local boolean_options="
--tls-verify
--no-creds
"
local transports="