I am trying to create a Docker container whose source tag I want to pass as a parameter.
Build script:
docker build \ --pull=true \ ... --build-arg version=${version}
Docker File:
ARG version FROM registry/repo:${version}
Doing this gives me an error. Please provide a source image with
from prior to commit
.
Is there a way to pass the version in order to pull it out as a build argument and use it? I'm on docker version 1.12
source share