Skip to content

Run a lean VM without containerd/nerdctl #631

Answered by jandubois
chenxiaoqino asked this question in Q&A
Discussion options

You must be logged in to vote

However, seems like there is no option to avoid adding containerd-related stuff when launching the VM.

You can disable installation of nerdctl and containerd by editing your lima.yaml file:

# Enable user-scoped (aka rootless) containerd and its dependencies
# Default: true
user: null

The default for containerd.user is true, so set it to false to disable:

containerd:
  system: false
  user: false

This is done in the Alpine example, which is also generally the smallest instance you can use.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chenxiaoqino
Comment options

@afbjorklund
Comment options

@jandubois
Comment options

@afbjorklund
Comment options

Answer selected by chenxiaoqino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #629 on February 05, 2022 07:41.