Docker: Tag Image – Build with Tag, Remove, Re-Tag

The good practice is to tag Docker images with useful tags, e.g. version, intended destination (prod or staging), stability or any other information that is useful when deploying the application in different environments.

In this note i will show how to tag Docker images with one or multiple tags during a build.

Also i will show how to tag already existent Docker image and how to change (retag) or remove tags. (more…)

Alpine: Install cURL

A minimal Docker image based on Alpine Linux has only 5 MB in size, but a lot of tools common for Linux distributions (e.g. curl) are not installed by default.

In this short note i will show how to install curl in Alpine container from the command line.

I will also show how to build an Alpine-based Docker image with curl installed. (more…)

Install Docker on Ubuntu-18.04

For ones, who want to build and run Docker containers on Ubuntu-18.04 – first of all it is required to install Docker itself.

To install the latest version of Docker and to be able to upgrade it easily in future – it is recommended to install Docker from the official repository.

In this guide i will show how to install free Docker CE (Community Edition) on Ubuntu-18.04 from the stable official repository, how to verify that it is installed correctly and will show the common post-installation steps to perform. (more…)

Prometheus Monitoring: Install using Docker – Ubuntu, CentOS

What is Prometheus? Prometheus is an open-source monitoring and alerting software written in Go.

It collects metrics from configured targets and stores them in a local time series database.

Prometheus can run rules over collected data to either aggregate and record new time series from existing data or generate alerts.

To visualize the collected data Prometheus can be integrated with Grafana.

In the following article i will show how to install Prometheus using Docker on Ubuntu and CentOS. (more…)

Install Docker Compose – Ubuntu, CentOS, MacOS

What is Docker Compose? The docker-compose is a tool for defining and running complex multi-container Docker applications.

With docker-compose you can define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

In this note i’ll show how to install, upgrade or uninstall docker-compose on Ubuntu, CentOS or MacOS using pip. (more…)

Docker: Reload Nginx Inside Container

If you want to update Nginx configuration or renew SSL certificates, you should reload Nginx to apply modifications.

If you run Nginx inside Docker container you might be curious how to reload it without any downtime or connection interruptions.

The best way to reload Nginx inside Docker container is to run docker container exec command and send reload signal to the Nginx. (more…)