Whilst developing my Dockerfile, I ran into an issue with the Entrypoint instruction script; it's not taking my docker run arguments in.
Here is an example of what I tried, given:
COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT /entrypoint.sh With the following entrypoint.sh:
#!/bin/bash echo "I received:" "$@" When I run the command:
docker run given/image:latest "A B C" I expected the output:
I received: A B C But instead, it was:
I received: Am I missing something obvious here?