github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/k8s/utils/minikube_registry.sh (about)

     1  echo "Enabling registry for minikube"
     2  
     3  # enable registry
     4  minikube addons enable registry
     5  
     6  # removing minikube's registry-fwd container if preset
     7  docker kill registry-fwd || true
     8  
     9  # map localhost:5000 to the registry of minikube
    10  echo "Mapping localhost:5000 to minikube registry"
    11  docker run --name registry-fwd --rm -d -it --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(minikube ip):5000"