-
Notifications
You must be signed in to change notification settings - Fork 420
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededlifecycle/frozen
Description
Similar to how we load images into KinD with KO_DOCKER_REPO=kind.local
, we should support loading images into Rancher Desktop / k3s, which uses containerd.
https://cwienczek.com/2020/06/import-images-to-k3s-without-docker-registry/ indicates that you can run:
sudo k3s ctr images import /home/ubuntu/test-app-v1.0.0.tar
The Slack user Romāns Potašovs
who originally asked about this feature says you can also:
docker save my_app:latest | ctr -a /run/k3s/containerd/containerd.sock -n=k8s.io images import -
In which case, this should be fairly straightforward, either by piping that output into an exec.Command
, or by figuring out what library we'd need to import to accomplish the same thing. Shelling out might be better for our dependency graph (same for KinD, honestly).
This needs more investigation. If you have experience with k3s, and are interested in helping here, let me know.
xmlking, developer-guy and Schm1tz1
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededlifecycle/frozen