redis7+ (redis:7.4.0 \redis:7.2.5 )容器镜像无法正常启动 以下是版本信息 [root@localhost opt]# uname -a Linux localhost.localdomain 4.19.91-24.8.el8.ks8.11.x86_64 #1 SMP Mon Oct 25 15:57:11 CST 2021 x86_64 x86_64 x86_64 GNU/Linux [root@localhost opt]# docker version Client: Version: 27.1.2 API version: 1.46 Go version: go1.21.13 Git commit: d01f264 Built: Mon Aug 12 11:49:34 2024 OS/Arch: linux/amd64 Context: default
Server: Docker Engine - Community Engine: Version: 27.1.2 API version: 1.46 (minimum version 1.24) Go version: go1.21.13 Git commit: f9522e5 Built: Mon Aug 12 11:50:54 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.7.20 GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353 runc: Version: spec: 1.0.2-dev GitCommit: docker-init: Version: 0.19.0 GitCommit: de40ad0 [root@localhost opt]# docker-compose version Docker Compose version v2.29.1 [root@localhost opt]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE redis 7.4.0 dae83f665c92 2 weeks ago 117MB mysql 8.4.0 05247af91864 8 weeks ago 578MB redis 7.2.5 6da5f3c25798 2 months ago 116MB mysql 8.2.0 bc861cf238f2 8 months ago 619MB busybox latest 65ad0d468eb1 15 months ago 4.26MB
1:M 17 Aug 2024 16:57:59.668 * Increased maximum number of open files to 10032 (it was originally set to 1024). 1:M 17 Aug 2024 16:57:59.668 * monotonic clock: POSIX clock_gettime 1:M 17 Aug 2024 16:57:59.669 * Running mode=standalone, port=6379. 1:M 17 Aug 2024 16:57:59.669 # Fatal: Can't initialize Background Jobs. Error message: Operation not permitted 1:C 17 Aug 2024 16:59:00.747 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 17 Aug 2024 16:59:00.747 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 17 Aug 2024 16:59:00.747 * Configuration loaded 1:M 17 Aug 2024 16:59:00.748 * Increased maximum number of open files to 10032 (it was originally set to 1024). 1:M 17 Aug 2024 16:59:00.748 * monotonic clock: POSIX clock_gettime 1:M 17 Aug 2024 16:59:00.749 * Running mode=standalone, port=6379. 1:M 17 Aug 2024 16:59:00.749 # Fatal: Can't initialize Background Jobs. Error message: Operation not permitted 1:C 17 Aug 2024 17:00:01.792 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 17 Aug 2024 17:00:01.792 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 17 Aug 2024 17:00:01.792 * Configuration loaded 1:M 17 Aug 2024 17:00:01.792 * Increased maximum number of open files to 10032 (it was originally set to 1024). 1:M 17 Aug 2024 17:00:01.792 * monotonic clock: POSIX clock_gettime 1:M 17 Aug 2024 17:00:01.794 * Running mode=standalone, port=6379. 1:M 17 Aug 2024 17:00:01.794 # Fatal: Can't initialize Background Jobs. Error message: Operation not permitted
Comment From: sundb
please ref https://github.com/redis/redis/issues/12362
Comment From: yanxianhe
@sundb 当前处理方式是添加特权 privileged: true