Q. How can you limit the CPU usage of a Docker container?

  • (A) --cpu-shares
  • (B) --cpus
  • (C) --cpu-limit
  • (D) --cpu
πŸ’¬ Discuss
βœ… Correct Answer: (B) --cpus
Explanation: The '--cpus' flag is used to limit the number of CPUs a container can use.
Explanation by: Ram Sharma
The '--cpus' flag is used to limit the number of CPUs a container can use.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
146
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate