ARG in Dockerfile is only available in the build stage.
When you want to run it as a container, ARG values will not be available but ENV will be. This means you can not directly access those values in CMD (also not available in ENTRYPOINT). You can read this similar question for more info.
If you want to pass environment parameters to the container using the build arguments (ARG), the simple solution will be to do something like this:
ARG ARG1
ENV ENV1=$ARG1
Then update your CMD
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord_${ENV1}.conf"]
Remember your COPY instruction should still use ARG since it is used in the build stage. So your Dockerfile will be:
ARG ARG1
ENV ENV1=$ARG1
COPY files/etc/supervisor/supervisord_"$ARG1".conf /etc/supervisor/supervisord_"$ARG1".conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord_${ENV1}.conf"]
Then you can use the usual docker run ... command you used to run this image.
You can simplify this further like below as well:
ARG VAR1
ENV VAR1=$VAR1
COPY files/etc/supervisor/supervisord_"$VAR1".conf /etc/supervisor/supervisord_"$VAR1".conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord_${VAR1}.conf"]
Then use the following build command to build the Dockerfile:
docker build --build-arg VAR1=conf1