Skip to content

Regarding "How to use": Wouldn't a hello-world.json script make sense? #1059

Description

@rhdojun

Thinking about examples like Apache. Usually you can test if your ports, networking etc are set up correctly by simply running the default and looking if something comes up in the browser. If the script is already set up to run a single script in a one-liner, wouldn't it also make sense to provide a simple script that simply prints <h1>Hello World</h1>.

Activity

  1. MikeMcC399 commented on May 21, 2026

    @MikeMcC399
    Contributor

    I suggest adding the following to How to use this image, which is a simple out-of-the-box way to confirm an image is working:

    docker run --rm node:lts node -e "console.log('Hello World! You are using Node.js ' + process.versions.node)"

    results in:

    $ docker run --rm node:lts node -e "console.log('Hello World! You are using Node.js ' + process.versions.node)"
    Hello World! You are using Node.js 24.15.0
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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