Initially I have downloaded an image Ubuntu. In addition to that the following things have been added after starting the container using the following command (docker run -it finid/ubuntu-postgres) -Node Js, Postgres, Java.
I have started the container and a random ID has been generated say “2e316b59fa”. Each time I used container ID say “2e316b59fa” to login to the container(docker start -ai 2e316b59fa) .The application is up and running in 9000.
During initial run of the container, we didn’t publish/assign any port no to the container.
How can I access application running in container from browser?
How to assign a port to the container?