热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Docker 面试题与答案

问题 16. How can you limit the resources (CPU, memory) a container can use?

Docker allows resource constraints to be set using the `--cpu` and `--memory` options when running a container.

Example:

docker run --cpu=0.5 --memory=512m my_image

这有帮助吗? 添加评论 查看评论
 

问题 17. What is the purpose of Docker Swarm?

Docker Swarm is a native clustering and orchestration solution for Docker. It allows you to create and manage a swarm of Docker nodes, making it easy to scale and manage applications.

这有帮助吗? 添加评论 查看评论
 

问题 18. How do you remove a Docker image?

You can use the `docker rmi` command followed by the image ID or name to remove a Docker image.

Example:

docker rmi image_name

这有帮助吗? 添加评论 查看评论
 

问题 19. What is the purpose of Docker Compose volumes?

Docker Compose volumes allow data to persist between container restarts. They are specified in the `docker-compose.yml` file and are used for sharing data between services.

Example:

volumes:
  - data_volume:/app/data

这有帮助吗? 添加评论 查看评论
 

问题 20. Explain the concept of Docker Swarm Services.

Docker Swarm Services define how containers should behave in production. They enable scaling, rolling updates, and load balancing across a swarm.

Example:

docker service create --replicas 3 my_image

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。