node.js - Running docker image does not work -


i'm new docker, , doing node.js tutorial docker. i'm stuck @ step: http://docs.docker.io/en/latest/examples/nodejs_web_app/#building-your-image

i have executed this:

$ docker build -t i841712/centos-node-hello . ... built c04aea889b03 

and built successfully.

$ docker images repository                  tag                 image id            created             virtual size i841712/centos-node-hello   latest              c04aea889b03        23 minutes ago      667.9 mb ubuntu                      13.10               9f676bd305a4        9 weeks ago         178 mb ubuntu                      saucy               9f676bd305a4        9 weeks ago         178 mb ubuntu                      raring              eb601b8965b8        9 weeks ago         166.5 mb ubuntu                      13.04               eb601b8965b8        9 weeks ago         166.5 mb ubuntu                      12.10               5ac751e8d623        9 weeks ago         161 mb ubuntu                      quantal             5ac751e8d623        9 weeks ago         161 mb ubuntu                      10.04               9cc9ea5ea540        9 weeks ago         180.8 mb ubuntu                      lucid               9cc9ea5ea540        9 weeks ago         180.8 mb ubuntu                      12.04               9cd978db300e        9 weeks ago         204.4 mb ubuntu                      latest              9cd978db300e        9 weeks ago         204.4 mb ubuntu                      precise             9cd978db300e        9 weeks ago         204.4 mb busybox                     latest              769b9341d937        9 weeks ago         2.489 mb centos                      6.4                 539c0211cd76        12 months ago       300.6 mb 

now try run image:

$ docker run -p 49160:8080 -d i841712/centos-node-hello 995bfeef4edd723027480fdb43f097e2ba6a97b8fb1d2e9ec679dc1247f68a84 

but if check processes, instance not running.

$ docker ps container id        image               command             created             status             ports   

any ideas? thank you.

try: docker run -p 49160:8080 -i -t /centos-node-hello /bin/bash

for more information on options: http://docs.docker.com/reference/run/


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -