Public | Automated Build

Last pushed: a year ago
Short Description
This is an example of a node server that echos JSON
Full Description

node-docker-echo

Example node.js echo environment variables in docker.

View on docker hub

Usage

###

docker run node-docker-echo -p 3000:3000

Visit URL

curl http://localhost:3000/?message=wat

Output

{
  "message": "wat",
  "env": {
    "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "HOSTNAME": "083bf20472c9",
    "TERM": "xterm",
    "VERSION": "v6.2.1",
    "NPM_VERSION": "3",
    "HOME": "/root"
  }
}
Docker Pull Command
Owner
styfle
Source Repository

Comments (0)