Welcome to the Linux Foundation Forum!

Lab5.3 permission problems

The first podman example command fails because there's a security problem:

[email protected] ~ $ podman search --filter=is-official nginx                                      
ERRO[0000] error searching registry "docker.io": error getting username and password: error reading JSON file "/home/toastboy70/.docker/config.json": open /home/toastboy70/.docker/config.json: permission denied 
ERRO[0000] error searching registry "quay.io": error getting username and password: error reading JSON file "/home/toastboy70/.docker/config.json": open /home/toastboy70/.docker/config.json: permission denied

..because the previous docker steps have us running everything as root..

[email protected] ~ $ sudo ls -al /home/toastboy70/.docker/                                         
total 12                                                                                                           
drwx------  2 root       root       4096 Oct  4 06:49 .                                                            
drwxr-xr-x 10 toastboy70 toastboy70 4096 Oct  4 07:45 ..                                                           
-rw-------  1 root       root        198 Oct  4 06:49 config.json

It's easily fixed by either changing the ownership of .docker or doing the podman steps with sudo, but it's really disconcerting that I'm finding so many errors in the teaching material. The testing of these steps could be automated, surely?

Comments

  • chrispokornichrispokorni Posts: 725

    Hi @toastboy,

    Thanks for reporting the permission issue. It will be investigated and noted (or corrected) in the course content if necessary.

    Regards,
    -Chris

Sign In or Register to comment.