Permission denied in /var/lib/docker

Hi,
i’ve set up a raspberry pi 5 with raspberrypios and docker. Installed using the convenience script and the
https://docs.docker.com/engine/install/linux-postinstall/ instructions.
After log in via terminal and ssh I get “permission denied” when cd to /var/lib/docker.

Is this normal behaviour?

dirk@raspberrypi:/var/lib $ ls
AccountsService  containerd           ghostscript  misc            private       sudo            vim
alsa             dbus                 git          NetworkManager  python        systemd         wtmpdb
apt              dhcpcd               hp           nfs             raspberrypi   ucf             xfonts
aspell           dictionaries-common  ispell       openbox         saned         udisks2         xkb
bluetooth        docker               lightdm      PackageKit      sgml-base     upower          xml-core
cloud            dpkg                 logrotate    pam             shells.state  usb_modeswitch
colord           emacsen-common       man-db       plymouth        snmp          userconf-pi
dirk@raspberrypi:/var/lib $ cd docker
-bash: cd: docker: Keine Berechtigung
dirk@raspberrypi:/var/lib $

This is not a Docker-problem. It is not a problem at all.

If you list your directory including the permissions (ls -la | grep docker) you might see that the directory /var/lib/docker is owned by user root and group root and the permissions 710 (at least that is the permission on my Debian). As you are usually not the user root it is normal that permissions to this directory are denied to you. If you need to look into this directory you can become root by running su - root or sudo bash (and I guess there are some other commands as well) and then you are allowed to list the contents of /var/lib/docker :slight_smile:

Sorry for my lack of basic knowledge and thanks for answering nevertheless… :blush: