This seems like it might be a connectivity issue, rather than a problem inside the container, as when I inspect the running processes inside the container, it appears that NodeJS is running: $ docker top test-ghostīut it appears nothing is listening on port 8080: $ sudo lsof -n -i4TCP:8080 | grep LISTEN I get the following error: This webpage is not available However, when I try to browse to any of the following addresses in Chrome, from my host: My understanding is that the -p switch will map a port on the host (8080) to a port inside Docker (2368), so that I can hit the web server running within Docker, from outside docker, i.e.
I have pulled a Docker image: $ docker pull ghostĪnd run a container from the image: $ docker run -name test-ghost -p 8080:2368 -d ghostħd984e974f6a75fe18b3d397b5c8f0a428928a2be9df83f0d61a679aa5f537fc