Ubuntu container and simple node app to experiment with container port forwarding.
1.1K
This is built on top of the latest ubuntu image (at the time of posting) provisioned with nodejs, npm and express.
docker run -d -p 8080:3000 chuckwired/port-tutorial /usr/bin/nodejs /home/hello-world/app.jscurl localhost:8080Run this container with the /usr/bin/nodejs /home/hello-world/app.js &, and the -p 8080:3000 (change 8080 to any port you wish). Then on the docker daemon machine you can "curl localhost:8080" to see that your container has exposed the application!
Content type
Image
Digest
sha256:fead4d0b4…
Size
152.6 MB
Last updated
about 11 years ago
docker pull chuckwired/port-tutorial