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)

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

Kubernetes on Ubuntu 18.04

How to install Kubernetes on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Kubernetes on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver Linux
  • Software: – Kubernetes v1.10.0

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Scenario

In this guide we will be configuring the simplest possible Kubernetes cluster consisting of two nodes. The first node with hostname kubernetes-master will act as the master node.

The second node with hostname kubernetes-master also running Ubuntu 18.04 will be a slave node simply joining the Kuberneets cluster. Once we get the Kubernetes cluster up and running as a proof of concept we will deploy a Nginx server container.

Conventions

Read more

docker-RHEL 8 / CentOS 8

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

docker-logo

How to install and configure Docker-ce/Moby Engine on Fedora 32

Even if Red Hat has developed podman and buildah, its own tools to work with containers, which come with some important advantages like a daemonless architecture, you may want to continue using the original Docker software on Fedora. In this tutorial we will explore the options we have on the latest release of the distribution to do so, and will see how to apply the needed fixes for Docker to work correctly.

In this tutorial you will learn:

  • How to install moby-engine
  • How to install docker-ce
  • How to apply the workarounds needed to make Docker run correctly on Fedora 32

Read more

How to create a docker based LAMP stack using docker on Ubuntu 20.04

How to create a docker based LAMP stack using docker on Ubuntu 20.04

The LAMP stack

LAMP is the software stack on which probably the majority of websites run. Linux represents the foundation of the stack, and the traditional implementation includes Apache as the web server, the MySQL database, and PHP as the server-side programming language. There are, however, many possible variations: MariaDB, for example, is often used in place of MySQL, of which it is a fork, and other programming languages, as Python or Perl can be used instead of PHP. In this article we will see how to implement a basic LAMP stack using docker and the docker-compose utility.

In this tutorial you will learn:

  • How to install docker and docker-compose on Ubuntu 20.04
  • How to define services and volumes using docker-compose
  • How to map host ports to container ports in the docker-compose configuration file
  • How to use bind mounts and named volumes
  • How to build a project with docker-compose
How to create a docker based LAMP stack using docker on Ubuntu 20.04

How to create a docker based LAMP stack using docker on Ubuntu 20.04

Read more

docker-compose on Ubuntu 20.04 Focal Fossa Linux

How to install docker-compose on Ubuntu 20.04 Focal Fossa Linux

Compose is a feature for setting up and running multi-container Docker applications. With a single command, you can create and start all the services from your configuration. To learn more about Compose see How To Launch Containers With Docker Compose. The objective of this short guide is to install docker-compose on Ubuntu 20.04 Focal Fossa Linux Server/Desktop.

In this tutorial you will learn:

  • How to install docker-compose from Ubuntu repository
  • How to install the latest docker-compose from the official git repository

Read more