I run redis through podman. The status of the redis container is exit. I input the command to view the log, but nothing is output

Viewed 30

I run redis through podman. The status of the redis container is exit. I input the command to view the log, but nothing is output. Here are the commands:

[root@aly conf]# podman ps -a
CONTAINER ID  IMAGE                           COMMAND               CREATED        STATUS                    PORTS                   NAMES
6ef71154f009  docker.io/library/redis:latest  redis-server /etc...  7 minutes ago  Exited (0) 7 seconds ago  0.0.0.0:6379->6379/tcp  redis7
ab9e6e6a7eb0  docker.io/library/mysql:latest  mysqld                5 hours ago    Up 5 hours ago            0.0.0.0:3306->3306/tcp  mysql8
[root@aly conf]# podman logs redis7
[root@aly conf]# 
[root@aly conf]# podman -v
podman version 1.6.4
[root@aly conf]# podman inspect redis7 | grep -i version
            "OciVersion": "1.0.1-dev",
                "REDIS_VERSION=7.0.4",
                "GOSU_VERSION=1.14",
[root@aly conf]# 
[root@aly conf]# podman inspect redis7 | grep -i log
                "Log": null
        "LogPath": "/var/lib/containers/storage/overlay-containers/6ef71154f0099984b2bb6d3c144be119c41a2c10d5dd7a1b30293b2810ffe327/userdata/ctr.log",
            "CAP_SYSLOG",
            "CAP_SYSLOG",
            "--log-level",
            "LogConfig": {
[root@aly conf]# cat /var/lib/containers/storage/overlay-containers/6ef71154f0099984b2bb6d3c144be119c41a2c10d5dd7a1b30293b2810ffe327/userdata/ctr.log
[root@aly conf]# 
0 Answers
Related