Backing up a Docker container on Linux

Docker container: Backup and Restore

The purpose of this guide is to go over the step by step instructions of how to back up a Docker container on the Linux command line. We’ll also show how to restore a Docker container from backup. This can be done on any Linux system where Docker is installed, and will work on any Linux distribution.

To understand the Docker container backup and recovery process we first need to understand the difference between a Docker image and a Docker container. A Docker image contains an operating system with possibly one or more preconfigured applications, whereas a Docker container is a running instance created from an image.

In this tutorial you will learn:

  • How to back up a Docker container on Linux
  • How to restore a Docker container on Linux

Read more

Sharing data from the host system to a Docker container

How to share data between a Docker container and host system using volumes

The easiest way to share data between a Docker container and the host system is to use Docker’s volumes. In this guide, we will go through the step by step instructions of sharing files between a Docker container and host system using Docker volumes via the command line on Linux.

DID YOU KNOW?
Docker volumes work similarly to bind mounts, but are the preferred method for sharing data between a host system and Docker container because outside applications are not able to access the files and modify them.

In this tutorial you will learn:

  • How to use volumes to share data between a Docker container and host system

Read more

Linking two Docker containers together through networking on Linux

Basic networking example on how to connect docker containers

One of the many desirable features built directly into Docker is networking. Docker’s networking feature can be accessed by using a --link flag which allows to connect any number of Docker containers without the need to expose a container’s internal ports to the outside world.

In this guide, you will learn how to network two or more Docker containers together on a Linux system through command line instructions. This will work on any Linux distribution. Check out the step by step instructions below to find out how.

In this tutorial you will learn:

  • How to network Docker containers together

Read more

Removing all Docker containers from a Linux system

How to remove all docker containers using a single command

In this guide, we will show command line examples for removing all Docker containers from a Linux system. This will work on any Linux distribution.

Along with removing Docker containers, you’ll also learn how to remove Docker images, volumes, and networks. This is useful when you want to completely purge all traces of containers from your Docker installation and start fresh. Check out the examples below to find out how.

In this tutorial you will learn:

  • How to list, stop, and remove all Docker containers
  • How to remove Docker images, volumes, and networks

Read more

Docker running a container image on Fedora Linux

How to install Docker on Fedora Linux system

Docker is a tool that is used to run software in a container. It’s a great way for developers and users to worry less about compatibility with an operating system and dependencies because the contained software should run identically on any system.

Docker is available for download and installation on Fedora as well as most other distributions of Linux. However, installing it on Fedora can be a bit tricky because Red Hat doesn’t offer native support for Docker on its distributions. Instead, Red Hat pushes support for Podman, an alternative to Docker. This makes Docker a bit harder to install, but it’s still possible on Fedora.

In this guide, we’ll show you how to install Docker on Fedora and get started with installing containerized software. After Docker is installed, you can use it to install software packages much the same way you would use your distro’s package manager to download an app. The difference of using Docker is that everything is more automated, with compatibility and dependencies no longer being potential issues.

In this tutorial you will learn:

  • How to install Docker
  • How to start Docker and make it run automatically at boot
  • How to run Docker without root
  • How to search for a Docker image
  • How to install a Docker image
  • How to run a Docker image
  • How to monitor Docker with various commands
  • How to automatically start a Docker container

Read more

Docker running a container image on AlmaLinux

Install Docker on AlmaLinux

Docker is a tool that is used to run software in a container. It’s a great way for developers and users to worry less about compatibility with an operating system and dependencies because the contained software should run identically on any system.

If you’ve recently installed AlmaLinux or migrated from CentOS to AlmaLinux, you may be wondering how to get Docker up and running on the system. Unfortunately, Red Hat Enterprise Linux doesn’t offer native support for Docker, and neither does AlmaLinux, since it is a fork of RHEL. Instead, Red Hat pushes support for Podman, an alternative to Docker. This makes Docker a bit harder to install, but it’s still possible on AlmaLinux.

In this guide, we’ll show you how to install Docker on AlmaLinux and get started with installing containerized software. After Docker is installed, you can use it to install software packages much the same way you would use your distro’s package manager to download an app. The difference of using Docker is that everything is more automated, with compatibility and dependencies no longer being potential issues.

In this tutorial you will learn:

  • How to install Docker
  • How to run Docker without root
  • How to search for a Docker image
  • How to install a Docker image
  • How to run a Docker image
  • How to monitor Docker with various commands
Docker running a container image on AlmaLinux

Docker running a container image on AlmaLinux

Read more

Mediawiki easy deployment with Docker container

About

The automated build docker Mediawiki system (CMS) image “linuxconfig/mediawiki” can be used to instantly deploy Mediawiki on your docker hosts.

Configuration

The Mediawiki runs on Debian GNU/Linux system featuring Apache web server, MariaDB ( MySQL ), database and PHP5. A new docker container based on “linuxconfig/mediawiki” will expose port 80 which can be linked to the docker host port for an immediate Mediawiki web configuration/installation access.

Read more

How to remove all docker images stored in a local repository

The following linux commands can be used to remove all Docker images stored in your local repository. Be aware that you would not be able to undo any of the removed docker images. First, list all your docker images to make sure that there is nothing you want to remove:

# docker images

Using the following linux command you can obtain image IDs of all your docker images:

# docker images -q

To remove a single docker image simply run docker rmi followed by the image ID. For example:

# docker rmi 9fa0e1f381ad

Read more

kimai time tracker installation docker

Kimai – Time Trakcer installation deployment using Docker

About

Kimai is a free open source timetracker. It tracks the time you spend with various pre-set projects and prints out a summary of your activities on demand. The automated docker Kimai time tracker image “linuxconfig/kimai” can be used to instantly deploy the Kimai time tracker on your docker hosts.

kimai time tracker installation docker

Configuration

The Kimai runs on Debian GNU/Linux system featuring Apache web server, MariaDB ( MySQL ), database and PHP5. After creating a docker container based on “linuxconfig/kimai” docker image, a port 80 will be exposed which can be access on the docker host for an immediate Kimai web configuration/installation as well as later access.

Configured MySQL users:passwords:

  • root:”empty password”
  • admin:”pass”

Configured MySQL databases:

  • kimai

Exposed ports:

  • 80

Deployment

The below command can be used to download and create a new docker container called kimai and link your docker host system’s port 80 with container’s exposed port 80.

# docker run -d --name=kimai -p 80:80 linuxconfig/kimai

Read more

Docker running a container image

Manjaro Linux Docker installation

Docker is a tool that is used to run software in a container. It’s a great way for developers and users to worry less about compatibility with an operating system and dependencies because the contained software should run identically on any system.

Docker is available for download and installation on Manjaro as well as most other distributions of Linux. After Docker is installed, you can use it to install software packages much the same way you would use your distro’s package manager to download an app. The difference of using Docker is that everything is more automated, with compatability and dependencies no longer being potential issues.

In this guide, we’ll show you how to install Docker on Manjaro Linux and get started with installing containerized software.

In this tutorial you will learn:

  • How to install Docker
  • How to run Docker without root
  • How to search for a Docker image
  • How to install a Docker image
  • How to run a Docker image
  • How to monitor Docker with various commands

Read more

docker-logo

How to build a docker image using a Dockerfile

Docker skills are high in demand mainly because, thanks to the Docker we can automate the deployment of applications inside so-called containers, creating tailored environments that can be easily replicated anywhere the Docker technology is supported. In this tutorial we will see how to create a Docker image from scratch, using a Dockerfile. We will learn the most important instructions we can use to customize our image, how to build the image, and how to run containers based on it.

In this tutorial you will learn:

  • How to create a docker image using a Dockerfile
  • Some of the most frequently used Dockerfile instructions
  • How to achieve data persistence in containers

Read more

Docker on Ubuntu 20.04 LTS Focal Fossa

How to Install Docker On Ubuntu 20.04 LTS Focal Fossa

Docker is a combination of platform as a service products that use virtualization to provide software in packages called containers which can communicate with each other through well-defined channels. This tutorial focuses on Installing the latest Docker release on Ubuntu 20.04 LTS Focal Fossa.

In this tutorial you will learn:

  • How to install Docker from the standard Ubuntu Repository
  • How to enable Docker to start after the system reboot
  • How to allow regular user to administrate Docker

Read more