Rancher Desktop is an application that provides container management and Kubernetes on the desktop. By default, Rancher Desktop provides a single cluster with single node setup. When we choose containerd as our container engine in the Rancher Desktop preferences, Rancher Desktop uses Lima to launch a Linux virtual machine that is optimized to run containerd and nerdctl
(contaiNERD ctl).
With this image building stragety, nerdctl
is building the image using BuildKit, an improved build solution to replace Docker's legacy builder.
- Install Rancher Desktop
- Go to Preferences > Container Engine and make sure that containerd is selected
alias docker=$(which nerdctl)
cat Dockerfile
export TAG=v0.0.1
yq --inplace ".tag = \"$TAG\"" settings.yaml
docker image build --tag cncf-demo:$TAG .
docker image ls