Hi again everyone, Does anyone know of a way to s...
# ask-metaflow
a
Hi again everyone, Does anyone know of a way to share a local docker image to the minikube setup that metaflow-dev sets up, so that I can test with it in flows? I've tried multiple ways that have all failed and without access to the minikube commands directly I can't see a way to do it. Thanks
e
Does https://minikube.sigs.k8s.io/docs/commands/docker-env/ help? You might also find this snippet useful:
Copy code
${METAFLOW_DEVTOOLS}/.devtools/minikube/minikube addons enable registry
docker run --rm -it -d \
    --name=minikube-registry \
    --network=host \
    alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(${METAFLOW_DEVTOOLS}/.devtools/minikube/minikube ip):5000"
Then you can push to the
localhost:5000
registry instead of
<http://docker.io|docker.io>
, and Minikube will use that
a
Thanks, I managed to get it to work in a similar but slightly different way atm but will keep this for reference. My problems mostly arose through trying to use metaflow through wsl, but seems to be working now
👍 1