I cloned the railsgoat project, and edited the Dockerfile by adding
EXPOSE 3000 to it.
Then I built it:
docker build -t mccabe615/railsgoat .
I tried various combinations by running the container, for example with:
docker run -it --name goat -p 3000:3000 mccabe615/railsgoat
But couldn’t access this app through localhost:3000. (I also tried different ports, but no luck)
Is there anything wrong with my commands? Thanks!