Category Archives: Docker

Docker Tutorials

How to Create a Docker Swarm with Ubuntu 22.04

Learn how to create a Docker Swarm with Ubuntu 22.04: step-by-step guide to set up and manage a powerful container orchestration solution.



In the world of containerization and orchestration, Docker Swarm has emerged as a powerful tool for managing containerized applications. By creating a Docker Swarm, you can deploy and scale your applications seamlessly across a cluster of machines. This guide will walk you through the process of creating a Docker Swarm with Ubuntu 22.04, enabling you to harness the full potential of containerization.

Prerequisites for Running Docker Swarm

Before you can start setting up and running Docker Swarm, there are a few prerequisites that you need to fulfill. These prerequisites ensure a smooth installation and operation of Docker Swarm. Here are the prerequisites for running Docker Swarm with Ubuntu 22.04:

  1. Operating System: Docker Swarm is compatible with various operating systems, including Linux, Windows, and macOS. However, for
Read the rest
Docker Tutorials

How to Install Docker on Ubuntu 22.04: Simplified Guide

Learn how to install Docker on Ubuntu 22.04 with our simplified guide. Master Ubuntu 22.04 and Docker containers and unleash the power of Docker!



Docker has revolutionized the way developers build, package, and deploy applications. It provides a lightweight and efficient platform for running applications in containers, ensuring consistency across different environments. If you’re an Ubuntu 22.04 user and want to harness the power of Docker, you’re in the right place! In this comprehensive guide, we will walk you through the step-by-step process of installing Docker on Ubuntu 22.04 and getting started with containerization.

Table of Contents

  1. Prerequisites
  2. Updating Ubuntu 22.04 System Packages
  3. Install Docker on Ubuntu 22.04
  4. Configuring Docker
  5. Managing Docker Services
  6. Working with Docker Containers
  7. Building Custom Docker Images
  8. Docker Networking
  9. Docker Storage
  10. Securing Docker
  11. Scaling Docker
  12. Docker Compose
  13. Docker Swarm
  14. Monitoring Docker
  15. Troubleshooting Docker
  16. Docker FAQs
  17. Conclusion


Before diving into the installation process, make sure … Read the rest

Docker Tutorials

How to Install MariaDB in Docker: A Step-by-Step Guide

Learn how to install MariaDB in Docker with this comprehensive step-by-step guide. Easily set up and manage your database environment for optimal performance and scalability.


Are you looking to install MariaDB in Docker and wondering where to start? Look no further! This comprehensive guide will walk you through the process step-by-step, ensuring a smooth installation of MariaDB in Docker. By the end of this guide, you’ll be equipped with the knowledge and confidence to set up MariaDB in Docker and enjoy its powerful features. So, let’s dive right in!

Why Use Docker for MariaDB?

Before we jump into the installation process, let’s take a moment to understand why using Docker for MariaDB is a great choice. Docker allows you to encapsulate MariaDB and its dependencies within a container, providing a lightweight, isolated, and portable environment. With Docker, you can easily manage and deploy MariaDB instances across different environments, ensuring … Read the rest

Docker Tutorials

How To Execute Docker without using sudo privilege on Ubuntu 20.04

In this tutorial you will be shown how to configure Ubuntu 20.04 to execute Docker without using sudo. By default, you have to run docker commands with sudo privilege or by a user in the docker group. This tutorial will show you how to bypass that.

To test your privileges to confirm you cannot run Docker without sudo type in docker run hello-word. You should get the following message and if should move forward with the tutorial.

$ docker run hello-world 
Got permission denied while trying to connect to the Docker 
daemon socket at unix:///var/run/docker.
sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/containers/json: 
dial unix /var/run/docker.sock: connect: permission denied


Lets Get Started

  1. SSH into your Ubuntu 20.04 server.
  2. Create new group. This command will likely fail as group maybe already exist, but let’s run it anyways.
sudo groupadd docker

3. Now we will add the current logged in user to the docker group

Read the rest
Docker Tutorials

Docker Command Guide: A Complete List of Essential Commands

DockerIn this tutorial you will be shown how to use Docker commands and if you need help Executing docker without using sudo privilege click here.

In this section below I will explain how to use docker commands. So, before going into these details, let’s take look at the syntax of ‘docker’ commands:

$ docker [options] [sub-commands] [arguments]

Now if you want to list all available sub-commands of docker, run:

$ docker

There are many sub-commands and arguments that can follow after $docker. Below are some of them in the following sections of this tutorial.

Management Commands:

  attach      ## Attach local standard input, output, and error streams to a running container
  build       ## Build an image from a Dockerfile
  commit      ## Create a new image from a container's changes
  cp          ## Copy files/folders between a container and the local filesystem
  create      ## Create a new container
  diff        ## Inspect changes 
Read the rest
Docker Tutorials

How to Install Docker on Ubuntu 20.04

In this tutorial you will be shown how to install Docker onto Ubuntu 20.04. Docker is an open source platform that simplifies the process of building, running, managing and distributing applications. It does this by virtualizing the operating system of the computer on which it is installed and running.



Lets Get Started!


  • Create a Ubuntu 20.04 VPS server on Linode. The $5 plan will be fine for this tutorial. If your planning on deploying many containers consider using a larger plan.


Lets SSH into Ubuntu 20.04 and perform some updates.

  1. To SSH into the server we will be using Putty. Download and install Putty.
  2. Open up putty and type in the IPv4 address of your server and click open.
  3. Log into your Ubuntu 20.04 server with the username and password.
  4.  started with making sure we have the latest updates installed.
sudo apt update
sudo apt upgrade

5. … Read the rest