Sample container image for testing.
To create the image containertools/hello-world, execute the following command:
docker build -t containertools/hello-world .
Running your Hello World container:
docker run -it -p 8080:8080 containertools/hello-world
Running your Hello World container mouting a files directory:
docker run -it -p 8080:8080 -v "$PWD/files:/files" -e FILES_BASEPATH=/files containertools/hello-world
FILES_BASEPATH
: Path to the directory containing the files to be listed. Default value: /tmp
- /: Shows an HTML page containing some container configuration information.
- /json: Shows a JSON object containing some container configuration information.
- /files: List files in the
FILES_BASEPATH
directory.
Apache 2.0 - See LICENSE for more information.