systemctl disable --now podman.socket
rm -rf /run/user/${UID}/podman
rm -rf /run/podman
systemctl enable --now podman.socket
systemctl --user enable --now podman.socket
loginctl enable-linger $USER
$ podman -r info | grep remoteSocket -A 2
remoteSocket:
exists: true
path: /run/podman/podman.sock
minikube addons enable registry
Expose the registry to the host machine on port 5000. Can be done by xinet, port-forward or use assisted-test-infra which automate the xinet method:
###xinet Change registry service to a LoadBalancer (minikube tunnel will assign an external IP)
kubectl patch service registry -n kube-system --type json -p='[{"op": "replace", "path": "/spec/type", "value":"LoadBalancer"}]'
Create a new xinet configuration file at /etc/xinetd.d/minikube-registry
:
{
type = UNLISTED
socket_type = stream
protocol = tcp
user = root
wait = no
redirect = EXTERNAL_IP EXTERNAL_PORT
port = 5000
per_source = UNLIMITED
instances = UNLIMITED
}
Reboot the xinet service: systemctl restart xinetd.service
###port-forward
kubectl port-forward --namespace kube-system service/registry 5000:80
export SUBSYSTEM_LOCAL_REGISTRY=localhost:5000