c9 in a docker container running node v8.9.0 via nvm on debian
docker run -d -p :80 z3cka/c9
- Find external port on host via
docker ps
:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
942d87429a7d c942a246bd79 "/bin/sh -c '/root/.n" 58 seconds ago Up 57 seconds 0.0.0.0:32770->80/tcp elated_lamport
- Visit
http://localhost:32770
- User Name:
c9
- Password:
rules
- User Name:
- at runtime like:
docker run -d --env c9port=8181 -p :8181 z3cka/c9
- at buildtime like:
- build it:
docker build --build-arg c9port=8282 .
...Successfully built 891d895beadf
docker run -d -p :8282 891d895beadf
- build it:
- at runtime like:
docker run -d -e user=foo -e pass=bar -p :80 z3cka/c9
- at buildtime like:
docker build --build-arg user=foo --build-arg pass=bar .
- at runtime like:
docker run -d -e workspace="/baz" -p :80 z3cka/c9
- at buildtime like:
docker build --build-arg workspace="/baz" .