G
G
Governor2022-03-15 15:27:06
Docker
Governor, 2022-03-15 15:27:06

Is it possible to write metadata to a docker container?

You need to leave some information about the container. For example, the path to the script from which the container was launched and similar metadata, and so that it can be read later, for example, in docker inspect.
Is it possible to inject metadata into docker containers?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2022-03-15
@karabanov

The LABEL instruction adds metadata to an image.

V
Vasily Bannikov, 2022-03-15
@vabka

Labels (key-value) can be attached to containers and not only
https://docs.docker.com/config/labels-custom-metadata/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question