I have a requirement where I have to read docker run arguments in my entry command.
docker run -d -p 4058:4058 -p 5800-5805:5800-5805 image_name
Dockerfile :
FROM alpine
# some logic in here
CMD ["/bin/sh", "-c", "sh start.sh"]
In my start.sh file, I want to read the -p value( 4058:4058 5800-5805:5800-5805) of docker run.
Apart from using environment variable in docker run, Is there any way to read -p argument in start.sh file.