diguage
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
contrib/offline/manage-offline-container-images.sh
|
|
@ -1,4 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
OPTION=$1 |
|
|
|
CURRENT_DIR=$(cd $(dirname $0); pwd) |
|
|
@ -118,6 +118,8 @@ function register_container_images() { |
|
|
|
cp ${CURRENT_DIR}/registries.conf ${TEMP_DIR}/registries.conf |
|
|
|
sed -i s@"HOSTNAME"@"$(hostname)"@ ${TEMP_DIR}/registries.conf |
|
|
|
sudo cp ${TEMP_DIR}/registries.conf /etc/containers/registries.conf |
|
|
|
elif [ "$(uname)" == "Darwin" ]; then |
|
|
|
echo "This is a Mac, no configuration changes are required" |
|
|
|
else |
|
|
|
echo "runtime package(docker-ce, podman, nerctl, etc.) should be installed" |
|
|
|
exit 1 |
|
|
|