I'm trying to build a Docker container whose source tag I want to pass as a parameter.
Build script:
docker build \
--pull=true \
...
--build-arg version=${version}
The Dockerfile:
ARG version
FROM registry/repo:${version}
Running this gives me the error Please provide a source image withfromprior to commit.
Is there any way I can pass the version to pull as a build argument and use it? I'm on docker version 1.12
FORMbefore being able to useARGin your Dockerfile.