Reputation: 3356
When issuing the docker log <container>
command, I am getting the following error:
[root@Infra-1 ~]# docker logs gitlab-redis
chmod: changing permissions of '/var/lib/redis': Permission denied
gitlab-redis
is a container that has exited.
In fact, the directory does not exist at all:
[root@Infra-1 ~]# ls /var/lib/redis
ls: cannot access /var/lib/redis: No such file or directory
I suppose that docker log
is looking in the wrong location. Could it possibly have been misconfigured? Where should I check?
Upvotes: 1
Views: 7759
Reputation: 28150
I think docker logs
is working, the output of the logs is chmod: changing permissions of '/var/lib/redis': Permission denied
.
/var/lib/redis
is inside the container, not on the host.
Upvotes: 4