libkpod/image/copy.go: Add pull by short-name
If the user provides kpod pull a short name like 'debian', we still want the pull to be sucessful. As such, when a short name is provided, we get the list of searchable registries via the systemregistries code in containers-storage. We then append a tag of 'latest' (if not provided) and we formulate a list of possible fully-qualified image names to try. Vendor update for containers-storage to bring in the system_registries code. Also includes a patch from Nalin to fix compilation errors. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
parent
400713a58b
commit
951a943d16
8 changed files with 274 additions and 67 deletions
|
@ -59,6 +59,9 @@ PIDS_LIMIT=${PIDS_LIMIT:-1024}
|
|||
|
||||
TESTDIR=$(mktemp -d)
|
||||
|
||||
# kpod pull needs a configuration file for shortname pulls
|
||||
export REGISTRIES_CONFIG_PATH="$INTEGRATION_ROOT/registries.conf"
|
||||
|
||||
# Setup default hooks dir
|
||||
HOOKSDIR=$TESTDIR/hooks
|
||||
mkdir ${HOOKSDIR}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue