Docker Community Forums

Share and learn in the Docker community.

Referencing the first argument passed to the docker Entrypoint


(Ole Ersoy) #1

Hi - I’m trying to obtain the first argument passed to my run script:
http://stackoverflow.com/questions/37378616/referencing-the-first-argument-passed-to-the-docker-entrypoint


(Richardpayne) #2

You’re using the shell form for the ENTRYPOINT setting. This specifically does not allow parameters to be passed.

Use the exec form instead:

ENTRYPOINT ["/run.sh"]