I am trying to copy a file from container to local drive, but I encountered several errors during this procedure. Later, I realized that the problem is not related to the commands I use, it is related to permission. Because I cannot list the containers directory that I use when trying to copy.
I try to list the /var/lib/docker/containers
using PowerShell on Windows:
PS C:\Windows\system32> docker exec 144625ac6917 ls /var/lib/docker/containers
Gives this error: ls: cannot access '/var/lib/docker/containers': No such file or directory
How can I fix this problem?