dockerfile-maven icon indicating copy to clipboard operation
dockerfile-maven copied to clipboard

How to add image label when dockerfile maven build

Open dragon9783 opened this issue 7 years ago • 2 comments

Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST

Description

[Add feature/bug description here] When build image, how to add image label, like docker build --label xxxx

How to reproduce

[Add steps on how to reproduce this issue]

What do you expect

[Describe what do you expect to happen]

What happened instead

[Describe the actual results]

Software:

  • docker version: [Add the output of docker version here, both client and server]
  • Spotify's dockerfile-maven version: [Add dockerfile-maven version here]

Full backtrace

[Paste full backtrace here]

dragon9783 avatar Oct 29 '18 00:10 dragon9783

I don't think this exists at all in the plugin, but we'd be happy to accept any pull requests that add it.

mattnworb avatar Oct 29 '18 13:10 mattnworb

We'd like a feature like that :-)

Currently we work around it by passing build arguments that are then used as the values of LABEL directives in the Dockerfile. (But there is a bug with build arguments containing spaces: #286)

thibgc avatar Apr 12 '19 04:04 thibgc