Help us understand the problem. What is going on with this article?

1.13以降はMAINTAINERの代わりにLABELを使うようにしよう

More than 3 years have passed since last update.

https://github.com/docker/docker/pull/25466

こちらによると、Docker 1.13からMAINTAINERの使用が非推奨(deprecated)となったようです。

互換性は保たれるとのことで、従来のDockerfileが動かなくなるということは無いですが
今後新規に作成するDockerfileでは対応しておいたほうが良さそうです。

MAINTAINERを廃止してLABELを使う

MAINTAINERの代わりにLABELを活用してくれということなのでLABELに書き換えてみました。

https://github.com/okisanjp/docker-centos7/commit/c085afffb435e576b0f1900a1a03f59b8991a2a0

λ git diff 4ba573f .
diff --git a/Dockerfile b/Dockerfile
index c0d1185..3e9284c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
 FROM centos:7
-MAINTAINER okisanjp
+LABEL  maintainer "okisanjp <okisan.jp@gmail.com>"

 # yum update
 RUN yum -y update && yum clean all

ちなみに、LABELを使用するとdocker inspectでmaintainerを確認したり出来ます

λ docker inspect centos7 | grep "maintainer"
                "maintainer": "okisanjp <okisan.jp@gmail.com>",
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした