Skip to content

Instantly share code, notes, and snippets.

@edr3x
Created April 12, 2024 20:20
Show Gist options
  • Save edr3x/eb15b3eb62bd7d75cafb64559e2466f3 to your computer and use it in GitHub Desktop.
Save edr3x/eb15b3eb62bd7d75cafb64559e2466f3 to your computer and use it in GitHub Desktop.
Make your local docker images available to k3s

Note:
There may be better way but this is the way i do it

First download and run registry service using docker

docker run -d -p 5000:5000 --restart always --name registry registry:2

Tag your local docker image

docker tag <image>:<tag> localhost:5000/<image>:<tag>

push the image to your local registry

docker push localhost:5000/<image>:<tag>

now you can use your image on k8s deployment.yaml file as

        image: localhost:5000/<image>:<tag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment