Docker: Stop using it the wrong way. Part 3.

If this is a coffee, please bring me some tea; but if this is tea then please bring me some coffee (c) Abraham Lincoln

That’s right! It’s time to look at how to build a Docker container for a Java application. As you know, programs written in Java are compiled to byte-code which is translated by Java Virtual Machine (JVM). To make it possible to run some small application written in Java you have to have the whole Java runtime environment. Let’s create a Docker container with Java 8 and look at how we can actually reduce its size. [Read More]

Docker: Stop using it the wrong way. Part 2.

A grownup is a child with layers on. (c) Woody Harrelson

Layers is a very important subject when it comes to Docker images. We will create a docker container image built in a “traditional” way and then we will try to make it smaller. Let’s make a container that runs a webserver. Nginx is a good option to start with. It’s small, fast, it has a lot of modules, very flexible in terms of settings and well-documented, therefore I strongly recommend to get yourself familiar with it if you are still not. [Read More]

Docker: Stop using it the wrong way. Part 1.

If you're gonna do it, do it right (c) Wham!

Yes, that’s right. Most likely if you use docker you do it the wrong way. The majority of people who try to use it start using it without bothering to understand, what is this all about, how it works and actually how it supposed to work. If it works for you and you are happy about it then it’s OK, keep doing it. If you want to know a little bit more about it and understand how to actually use it properly, I have something to tell you about it. [Read More]