We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
/etc/passwd
user
% docker image inspect --format '{{.Config.WorkingDir}}' -- ocaml/opam /home/opam
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
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, seeuser
here: https://github.com/opencontainers/image-spec/blob/main/config.mdThe text was updated successfully, but these errors were encountered: