I am using CMD to start a process when the container is run. I know how to pass arguments to the container when I run. Is there a way to configure the dockerfile so different scripts are run based on the argument or based on the container name?
Something like
if ARG=script1
CMD exec 'script1’
else
CMD exec 'script2’
end