PRACTICE / UNDERSTAND / REPEAT

Docker: Resource limits

Practice resource limits with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Resource limits · MCQQuestion link ↗

Which option sets a memory limit of 128 MiB for a container?

Choose one answer
Answer & explanation

Answer: --memory=128m

The --memory option configures the container memory limit. CPU quotas and exposed ports serve different purposes.