docker-nginx-brotli icon indicating copy to clipboard operation
docker-nginx-brotli copied to clipboard

Local docker command starts breaking

Open agarwalvinit opened this issue 3 years ago • 2 comments

My last command at dockerfile is CMD ["/bin/ash", "run.sh"] And I am getting an error - nginx: invalid option: "ash"

agarwalvinit avatar Feb 23 '22 12:02 agarwalvinit

As we found out the entrypoint is added which is nginx, can this be reason behind this issue? What can be the possible solution to this?

agarwalvinit avatar Feb 23 '22 13:02 agarwalvinit

yes that's likely because I added the entrypoint. If you have a Dockerfile using FROM this image, you could try adding this to your Dockerfile:

ENTRYPOINT ["/bin/ash"]
CMD ["run.sh"]

fholzer avatar Feb 23 '22 22:02 fholzer