obuilder icon indicating copy to clipboard operation
obuilder copied to clipboard

Extract and apply more implicit state than just environment variables

Open patricoferris opened this issue 1 year ago • 0 comments

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

patricoferris avatar Apr 12 '24 10:04 patricoferris