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

imdocker: Add image name to metadata fields #5268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aliask
Copy link

@aliask aliask commented Nov 4, 2023

What

Exposes the image name and tag of the source container (what the Docker API simply calls Image) as an additional metadata value alongside the existing ones.

Why

While the ImageID is available today, a SHA hash is not a particularly user-friendly way to identify what is actually generating the logs.

The image name provides a simple, easy-to-read identifier for the common scenario where an unmodified application image is used.

Testing

A test for this additional property has been written, however the devtools/devcontainer.sh environment does not include Docker, so attempting to run the test locally crashes with docker: command not found.

Modifying this development environment to add Docker is probably beyond the scope of this PR, so I hope that the CI tests will suffice.

Reference

Docker API documentation reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant