Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add a /etc/containers/auth.json #1746

Closed
wants to merge 1 commit into from

Commits on Jan 3, 2023

  1. WIP: Add a /etc/containers/auth.json

    A long-running tension in the docker/podman land is around
    running as a system service versus being executed by a user.
    (Specifically a "login user", i.e. a Unix user that can be logged
     into via `ssh` etc.)
    
     For login users, it makes total sense to configure the container
     runtime in `$HOME`.
    
     But for system services (e.g. code executed by systemd) it
     is generally a bad idea to access or read the `/root` home
     directory.  On image based systems, `/root` may be dynamically
     mutable state in contrast to `/etc` which may be managed
     by OS upgrades, or even be read-only.
    
     For these reasons, let's introduce `/etc/contaners/auth.json`.
     If it is present, and the current process is executing in
     systemd, it will be preferred.  (There's some further logic
     around this that is explained in the manpage; please see that
     for details)
    
    cc coreos/rpm-ostree#4180
    
    Signed-off-by: Colin Walters <[email protected]>
    cgwalters committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    e998b2f View commit details
    Browse the repository at this point in the history