Skip to content

No page on localhost:8080 #1

@msikma

Description

@msikma

After step one, the following occurs:

docker run --rm -v "$PWD":/app -w /app iron/node:dev npm install

Unable to find image 'iron/node:dev' locally
dev: Pulling from iron/node
6d6a6a7dae29: Pull complete 
33e6be7c8ffa: Pull complete 
6ea61a4052a4: Pull complete 
c3592df69b3c: Pull complete 
Digest: sha256:d41c53700fe4d3c497c4f732db75eea2a22348343115ffab2fd0a052274fb7db
Status: Downloaded newer image for iron/node:dev
[email protected] /app
`-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | `-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  `-- [email protected] 

npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

Then, step two:

docker run --rm -it -p 8080:8080 -v "$PWD":/app -w /app iron/node node server.js

Unable to find image 'iron/node:latest' locally
latest: Pulling from iron/node
6d6a6a7dae29: Already exists 
33e6be7c8ffa: Already exists 
6ea61a4052a4: Already exists 
7dabe43fd6d7: Pull complete 
Digest: sha256:937ef16121083e6e0ced456f870b815bd32166d596b7aa7a8293f34b401a24ac
Status: Downloaded newer image for iron/node:latest
Running on http://localhost:8080

The application seems to be running. However, localhost:8080 displays an error, stating that there's no server running on this address. Telnet to that address yields "connection refused."

Is there something I might have done wrong, or some configuration that's incorrect?

docker ps shows the following:

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
f860784b9248        iron/node           "node server.js"    5 minutes ago       Up 5 minutes        0.0.0.0:8080->8080/tcp   agitated_keller

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions