How to Manage Kubernetes Clusters With kubectl

The kubectl command is how administrators interact with and manage a Kubernetes cluster on a Linux system. It is an essential command line tool that works with all Kubernetes cluster envrionments like Amazon Web Services, Google Cloud Platform, or a cluster on your own hardware (e.g., kubeadm). Managing Kubernetes clusters at scale can be a challenge at first, but mastering the kubectl command will make it much easier.

Read more

How to Install Kubernetes on All Linux Distros

Kubernetes is container orchestration software that allows us to deploy, manage, and scale containerized applications across any number of node systems. It is a powerful and open source technology which makes it far more efficient to run applications at scale, and supersedes the traditional way of running applications directly on the operating system or in a virtual machine. A Kubernetes cluster also introduces self healing, load balancing, and a way to manage hundreds or thousands of containerized application from a single command prompt.

Read more

docker_logo

How to create a docker-based LAMP stack using docker-compose on Ubuntu 18.04 Bionic Beaver Linux

Objective

Following this tutorial you will be able to create a LAMP environment using the Docker technology.

Requirements

  • Root permissions
  • Basic knowledge of Docker

Conventions

  • # – requires given linux commands to be executed with root privileges either
    directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Also known as focal fossa, this version has long-term support.

Introduction

docker_logo
Docker is an open source project aimed at providing software inside containers. You can think of a container as a sort of “package”, an isolated environment which shares the kernel with the host machine and contains everything the application needs. All containers are built using images (the central images repository for them being Dockerhub).

In this tutorial, we will see how to create a LAMP stack based on dockerized components: following the “one service per container” philosophy, we will assemble the environment using docker-compose, a tool to orchestrate container compositions.

Read more

How to Update Docker on Debian/Ubuntu Linux

How to Update Docker on Debian/Ubuntu Linux

Keeping your software up to date is crucial for security and performance. Docker, a platform designed to help developers build, ship, and run applications in containers, is no exception. This guide provides clear instructions on how to update Docker on debian and ubuntu Linux systems using the sudo apt install docker.io command. Whether you are using Docker for application development or testing, the process is straightforward and can be completed in just a few steps.

Read more

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

How to install Docker CE on RHEL 8 / CentOS 8

The latest release of the RHEL 8 / CentOS 8. Red Hat has built its own tools, buildah and podman, which aim to be compatible with existing docker images and work without relying on a daemon, allowing the creation of containers as normal users, without the need of special permissions (with some limitations: e.g. at the moment of writing, it’s still not possible to map host ports to the container without privileges).

Some specific tools, however, are still missing: an equivalent of docker-compose, for example does not exists yet. In this tutorial we will see how to install and run the original Docker CE on Rhel8 by using the official Docker repository for CentOS7.

In this tutorial you will learn:

  • How to enable the docker-ce repository on RHEL 8 / CentOS 8
  • How to install docker and docker-compose on RHEL 8 / CentOS 8

docker-RHEL 8 / CentOS 8

Docker installed on RHEL 8 / CentOS 8

Read more

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

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

Image

How to bind a rootless container to a privileged port on Linux

One of the main innovations introduced by Podman was the ability to run rootless containers. Security wise, this was a big improvement, since a potentially compromised container running as root represents a security threat for the host system. In order to obtain a similar behavior, recent versions of Docker support running the docker daemon in the user context. Running unprivileged containers, albeit more secure, has also its drawbacks, as the inability to bind to privileged host ports.

Read more

How to Install Docker On Ubuntu 18.04 Bionic Beaver

Objective

Install the latest Docker release on Ubuntu 18.04

Distributions

Ubuntu 18.04 Bionic Beaver

Requirements

A working install of Ubuntu 18.04 with root privileges

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Introduction

For those interested in Ubuntu versions, focal fossa is the latest LTS release.
Docker has revolutionized how web applications are hosted and servers are run. Docker containers allow server administrators to compartmentalize their applications like virtual machines, but containers are much lighter weight, are easier to manager, and add less overhead.

Installing Docker on Ubuntu is very simple. Because Ubuntu is a popular choice for the cloud, the entire process has been streamlined to a science.

Read more