Skip to content

How to specify memory resources in lima/nerdctl #453

Answered by afbjorklund
doberkofler asked this question in Q&A
Discussion options

You must be logged in to vote

Docker Desktop for macOS have an overall limit for memory consumption on the container. Where can I find this in lima?

When you started the virtual machine, there was a YAML file to edit. It included fields like "cpus" and memory"

? Creating an instance "default"  [Use arrows to move, type to filter]
> Proceed with the default configuration
  Open an editor to override the configuration
  Exit

After it has been started, it is saved as ~/.lima/default/lima.yaml (or similar, for other instances than "default")

# CPUs: if you see performance issues, try limiting cpus to 1.
# Default: 4
cpus: 4

# Memory size
# Default: "4GiB"
memory: "4GiB"

# Disk size
# Default: "100GiB"
disk: "100GiB"

Y…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AkihiroSuda
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #451 on December 04, 2021 18:07.