I am trying to pass in an alternate argument to my ENTRYPOINT. Here is a basic example:
% cat Dockerfile
FROM ubuntu:latest
ENTRYPOINT ["date"]
CMD ["-u"]
% docker run -it my-app
Wed Sep 22 18:49:54 UTC 2021
% docker run -it my-app -r1
date: 1: No such file or directory
I am using date as a toy example. Why when I pass in -r1 does it fail? I have tried to put quotes around it and escape, but I can't seem to get this basic example to work.