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.
By default, the docker ps command lists only running Docker containers. With the specific options it is possible to list all Docker containers or filter output by the stopped containers only. Below you will find how to check running Docker containers, how to list stopped Docker containers and how to list all Docker containers.
To delete a particular Docker image firstly you have to find out the IMAGE ID by listing the all local Docker images. When the image for deletion is identified it can be removed with the docker rmi command. From the command-line it is also possible to remove unused Docker images (not used by any containers) […]
To delete a particular Docker container firstly you have to find out the CONTAINER ID or NAME by listing the all Docker containers. When the container for deletion is identified it can be removed with the docker rm command. From the command-line it is also possible to remove stopped (unused) Docker containers only or, if […]
Sometimes it happens that you make some changes to a file but later realize that it was a mistake and these changes have to be discarded. In Git you can revert the changes made to a file if you haven’t committed them yet, as well as you can revert a file to any previous commit. […]
If you have suddenly noticed that the last commit message is unclear or contains some incorrect information – don’t worry, as the most resent commit message can be easily changed if you haven’t yet pushed the commit to a remote server To edit the last commit message you have to repeat the git commit command […]
There can be a lot of situations when you may want to undo the last commit in Git, that you haven’t pushed to a remote server yet. For example, you have mistakenly committed the wrong files and want to revert the last local commit but keep the changes you made. Or you may want to […]