简体   繁体   English

我可以将Docker容器资源限制设置为无限制吗?

[英]Can I set docker container resource limit to unlimited?

I understand that we can set docker container resource limit, is it possible to set it as unlimited? 我了解我们可以设置docker容器资源限制,是否可以将其设置为无限制? so it can use all the resource that the server has. 因此它可以使用服务器拥有的所有资源。

Docker documentation says: Docker文档说:

By default, a container has no resource constraints and can use as much of a given resource as the host's kernel scheduler allows. 默认情况下,容器没有资源限制,并且可以使用主机内核调度程序允许的尽可能多的给定资源。

https://docs.docker.com/config/containers/resource_constraints/ https://docs.docker.com/config/containers/resource_constraints/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 --ulimit 选项在 docker 容器中将 POSIX 消息队列限制设置为无限制 - How to set POSIX message queues limit to unlimited in docker container using --ulimit option 如何为 visual studio 代码远程 devcontainer 配置创建的 docker 容器设置 memory 限制 - How can I set a memory limit for a docker container created by visual studio code remote devcontainer configuration 我可以限制每个Docker容器使用的内存和cpu吗? - Can I limit memory & cpu used per docker container? 如何限制 Docker 一次只能运行一个容器? - How can I limit Docker to only run one container at a time? 我如何评价 docker 容器上的 limit.network 流量 - How can I rate limit network traffic on a docker container 使用 Spotify Maven Docker 插件,如何更改添加到 Docker 容器的资源的文件权限? - Using the Spotify Maven Docker plugin, how can I change the file permissions of a resource that I add to a Docker container? 我可以通过 kubernetes 创建一组具有不同环境的独特 docker 容器吗? - Can i create set of unique docker container with different environment by kubernetes? Docker 容器可以访问我在服务器上设置的环境变量吗? - Can a Docker container access env variables I've set on the server? 如何在Docker容器中设置静态IP地址? - How can I set a static IP address in a Docker container? 如何为 Docker 容器内的附加卷设置权限? - How can I set permissions on an attached Volume within a Docker container?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM