pip is a tool for installing and managing Python packages. As well as Python, pip can be install on various operation systems: Linux, Mac, Windows, etc. In this post i am showing how to install pip on MacOS and how to install pip on Linux (Ubuntu and CentOS).
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 […]
The docker pull command serves for downloading Docker images from a registry. By default, the docker pull command pulls images from Docker Hub, but it is also possible to manually specify the private registry to pull from. Before running the docker pull command it needs to search the Docker registry for the image to download. […]
In the Docker’s world there are such concepts as images, containers and layers. They are closely related, but distinct and at the beginning of studying Docker there is often a confusion in understanding of these concepts. This article explains the differences between images, containers and layers.
All DNS records have a TTL (time to live) property that specifies the maximum amount of time the record may be cached. In Linux you can make the DNS TTL lookup using the dig command. You can both check the current domain remaining TTL as well as find out what TTL value is set on […]
Normally, log rotation in Linux is handled by daily cron job. The default configuration file is /etc/logrotate.conf and service or server specific configurations are stored in /etc/logrotate.d directory. Sometimes it needs to force rotation of some files manually. Below you will find how to debug and force logrotate manually.