- 1- Create the Node.js app
- 2- reate a server.js file that defines a web app using the Express.js framework
- 3- Creating a Dockerfile
- $ docker run -p 49160:8080 -d /node-web-app
- $ docker exec -it /bin/bash
- $ docker kill
- Confirm that the app has stopped
- $ curl -i localhost:49160
- curl: (7) Failed to connect to localhost port 49160: Connection refused