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 […]
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 […]
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 […]
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 […]
For ones, who want to build and run Docker containers on CentOS-7 – 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 […]
The docker logs command serves for accessing the logs of a container. In this post i am showing how to check the logs of a Docker container, see the timestamps and how to tail or grep these logs. I will also show how to find out where the Docker container logs are stored.
The docker stop command stops running Docker containers. To stop a container it sends the SIGTERM signal to the main process inside a Docker container requesting it to terminate. If the main process inside a container is not terminated after a grace period, the docker stop command sends the SIGKILL signal to cause it to […]
The docker exec command serves for executing commands in running Docker containers. With this command it is also possible to enter a running Docker container and start a bash session. In this post i am showing how to enter a Docker container and execute an interactive bash shell inside it.
The docker cp command serves for copying files and folders between Docker container and a host machine. It is possible to copy a file or folder from host to container as well as from container to host. In the examples below i am coping the files but the syntax for copying folders is the same.
The docker run command serves for creating containers from images. In this article i will show how to run a Docker image as a container on the example of the official latest base image of Ubuntu. I will show how to install apache2 inside a container with Ubuntu and how to save this container as […]