docker logs myredis
#进入本地log目录
cd log
less redis.log
#看到如下内容
1:C 10 Jul 2024 02:23:48.369 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 10 Jul 2024 02:23:48.369 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 10 Jul 2024 02:23:48.369 # Configuration loaded
1:M 10 Jul 2024 02:23:48.370 * monotonic clock: POSIX clock_gettime
1:M 10 Jul 2024 02:23:48.370 * Running mode=standalone, port=6379.
1:M 10 Jul 2024 02:23:48.370 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 10 Jul 2024 02:23:48.370 # Server initialized
1:M 10 Jul 2024 02:23:48.370 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 10 Jul 2024 02:23:48.371 * Ready to accept connections
redis.log (END)