Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.11 KB

File metadata and controls

30 lines (17 loc) · 1.11 KB

Build Container Image With Lima In Dev Environments

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.

Setup

Do

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

Continue The Adventure