dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

USER support for ARG variable

Open tcrawfo3 opened this issue 9 years ago • 1 comments

The USER instruction in a Dockerfile supports the use of an ARG variable. However, dockerfile_lint complains that this is invalid. I took an example syntax from the Dockerfile reference found at https://docs.docker.com/engine/reference/builder/. Oh, and your reference below is no longer valid.

FROM busybox
USER ${user:-some_user}
ARG user
USER $user

Line 2: -> USER ${user:-some_user} ERROR: Invalid parameters for command.. Reference -> https://docs.docker.com/reference/builder/

tcrawfo3 avatar Feb 06 '17 14:02 tcrawfo3

This issue still persists.

robertauer avatar Apr 28 '20 11:04 robertauer