Hands-on task
Settings through environment variables
The service from the izzylab/minihttp:1 image takes its settings from environment variables: NAME — the name it introduces itself with, PORT — the port it listens on inside the container (8080 by default).
Start a container hello from this image in the background so that the service introduces itself as hello-svc, listens on port 9090 inside and opens from the server at http://127.0.0.1:9090/.
- docker run -e
- environment variables