Skip to content

Extract and apply more implicit state than just environment variables #182

@patricoferris

Description

@patricoferris

In particular the user and the working directory of the image. These are available in the same way as the environment variables are I believe i.e.

% docker image inspect --format '{{.Config.User}}' -- ocaml/opam
opam

Which might need a little more work in terms of reading something like /etc/passwd to get the UID and GID that runc needs. Although, see user here: https://github.com/opencontainers/image-spec/blob/main/config.md

% docker image inspect --format '{{.Config.WorkingDir}}' -- ocaml/opam
/home/opam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions