Skip to content

Instantly share code, notes, and snippets.

View dellnoantechnp's full-sized avatar
🛴
Working from home

Eric_Ren dellnoantechnp

🛴
Working from home
  • BNDK
  • 成都
View GitHub Profile
@dellnoantechnp
dellnoantechnp / migrate-bitnami-image.sh
Last active September 18, 2025 08:36
This is a shell script for the bitnami image for migration. Due to the [Bitnami Containers Important Notice](https://github.com/bitnami/containers?tab=readme-ov-file#%EF%B8%8F-important-notice-upcoming-changes-to-the-bitnami-catalog) policy impact, It is used for the current short-term use of the image progressively.
#!/bin/bash
TARGET_REGISTRY="$1"
TARGET_REGSITRY_USERNAME="$2"
TARGET_REGISTRY_PASSWORD="$3"
NERDCTL_DOWNLOAD_URL="https://github.com/containerd/nerdctl/releases/download/v2.1.4/nerdctl-2.1.4-linux-amd64.tar.gz"
NERDCTL_TARBALL_FILE="nerdctl-2.1.4-linux-amd64.tar.gz"
CONTAINER_RUNTIME_SOCK_OPTS="--address /run/containerd/containerd.sock"
NERD_OPTS="-n k8s.io ${CONTAINER_RUNTIME_SOCK_OPTS}"