docker, golang and “Hello World” via HTTP

After reading the article “Create The Smallest Possible Docker Container” by Adriaan de Jonge I was wondering how long I need to install golang (again), write and build the server and get it running in a docker container. It took me ~30 minutes .

An interesting point is this the size of this container:

ollin/helloworldhttp                 latest                fd9ead3df193        16 minutes ago      4.072 MB

It’s only ~4 MB.

The virtual size of a small JRE  is ~386 MB (without any server):

seansummers/openjdk-7-jre-headless   latest                2cafc2975f19        7 months ago        386.6 MB

One thought on “docker, golang and “Hello World” via HTTP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s