As shown above
When I execute:
docker run -i -t --rm -p 90:80 --name=localxxxx --entrypoint /data/app/run zhanqi:v1.2
When starting a container, it did not start successfully, of which /data/app/run is a shell script in my mirror image
I thought it was a problem with my script, but our nginx execution file also failed.
But I succeeded in using /bin/bash, why? I printed it out via dockerlogs localaxxxx and it is also empty.
Ask for advice
Linux1024The ports within are
root
User port (Reference link), you can change 90 to a port larger than 1024. Or sudokkerrun …If 1 fails, execute
docker inspect container-name
, and then paste the information