Welcome to the Linux Foundation Forum!

Lab5.3 permission problems

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

  1. toastboy70@instance-lfs253-redux ~ $ podman search --filter=is-official nginx
  2. 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
  3. 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..

  1. toastboy70@instance-lfs253-redux ~ $ sudo ls -al /home/toastboy70/.docker/
  2. total 12
  3. drwx------ 2 root root 4096 Oct 4 06:49 .
  4. drwxr-xr-x 10 toastboy70 toastboy70 4096 Oct 4 07:45 ..
  5. -rw------- 1 root root 198 Oct 4 06:49 config.json
  6.  

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

  • Posts: 2,443

    Hi @toastboy,

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

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training