This is a very simple, bare-bones NodeJS project created for you to use with Docker.
- Install dependencies:
npm install
- Run server:
node server.js
- Build image:
docker build .
- Run container with image:
docker run {image_id}
whereimage_id
can be retrieved by runningdocker images
and found under the columnIMAGE ID
- Remove container:
docker kill {container_id}
wherecontainer_id
can be retrieved by runningdocker ps
and found under the columnCONTAINER ID