我正在尝试在 Docker 中运行的 CentOS 7(CentOS Linux 版本 7.9.2009(核心))映像上将我的实时优先级设置为无限制。
我正在执行(以 root 身份):
ulimit -r unlimited
我收到以下错误:
bash: ulimit: real-time priority: cannot modify limit: Operation not permitted
我从https://hub.docker.com/_/centos。
执行时ulimit -a
,我遇到了
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 514022
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
在docker容器中将实时优先级设置为零以外的值是否可行?