Hi All,
I have created an angular application and deployed it on docker. My docker file contains below code
FROM nginx:alpine
COPY ./dist/ui/. /usr/share/nginx/html
Now I ran below code to check my docker images:
docker images
I can see my docker image "ui" with Tag "latest". But when I am trying to run this docker image using command:
docker run -p 8090:8090 ui
I am seeing below lines on docker
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
And in browser when I am trying to run it with localhost:8090, or using ip, it's not running, getting "
This site can’t be reached
".
Please help.
Thanks
What I have tried:
Tried to run without giving port as well but not working.