Let the parent Docker some_img have argument X set to '0'.
How to override the argument value and have the parent Docker use other X?
I tried
ARG X='1'
FROM some_img:latest
...do stuff...
but clearly some_img still uses X='0' because ARG='0' is specified in some_img Dockerfile. ENV would take precedence over ARG, but this is not allowed before FROM.
Note that if I were just to build some_img, I could override ARG in Dockerfile by using --build-arg option in docker build.
Is there any way to override arguments in parent Docker?