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

Update to use LABEL instead of MAINTAINER #24

Open
dleehr opened this issue Aug 10, 2017 · 0 comments
Open

Update to use LABEL instead of MAINTAINER #24

dleehr opened this issue Aug 10, 2017 · 0 comments

Comments

@dleehr
Copy link
Member

dleehr commented Aug 10, 2017

https://docs.docker.com/engine/reference/builder/#maintainer-deprecated

The MAINTAINER instruction sets the Author field of the generated images. The LABEL instruction is a much more flexible version of this and you should use it instead, as it enables setting any metadata you require, and can be viewed easily, for example with docker inspect. To set a label corresponding to the MAINTAINER field you could use:

LABEL maintainer="[email protected]"

This will then be visible from docker inspect with the other labels.

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

No branches or pull requests

1 participant