alpine image with curl installed.alpine image without anything else.docker run -d -p 80:80 chenchun/hello /hello "this is hello server"
docker run -d -P --expose 80 chenchun/hello /hello
docker run -d -e PORT=8080 -p 8080:8080 chenchun/hello /hello
docker run -d -e RANDOM=1 chenchun/hello /hello
# exec into container
curl http://localhost
server 604: Hello World from Go in minimal Docker container
# the number "604" in the curl response is generated randomly on init
https://github.com/chenchun/dockerfile/blob/master/hello/hello.go
Content type
Image
Digest
sha256:5a2160cc2…
Size
12.1 MB
Last updated
about 4 years ago
docker pull chenchun/hello