PRACTICE / UNDERSTAND / REPEAT

Docker practice question

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

1 questionAnswers explainedFree · no login

Try this question

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.