Microk8s registry
Jump to navigation
Jump to search
#!/usr/bin/env bash set -e sudo apt-get install docker.io sudo docker build . -t mycontainer sudo docker save mycontainer > mycontainer.tar sudo microk8s ctr image import mycontainer.tar sudo microk8s ctr images ls | grep mycontainer
https://microk8s.io/docs/registry-images
https://microk8s.io/docs/registry-built-in
https://microk8s.io/docs/registry-private
sudo vim /var/snap/docker/current/config/daemon.json
"insecure-registries" : ["x.x.x.y:32000"],
sudo microk8s ctr images ls name~='localhost:32000'
sudo microk8s ctr images rm localhost:32000/coredns:latest