Is ARG inside Dockerfile supported?

Viewed 43

In Openshift 3.11, I'm trying to start a BuildConfig with a dockerStrategy and a Dockerfile. In the Dockerfile, I would like to do something like :

ARG IMAGE=ubuntu
FROM $ARG

It is working fine in pure docker. But not in Openshift. It tries and fails to pull the image "$ARG" (not Ubuntu).

Is there a way to do this?

Thanks

1 Answers
Related