How to install Docker on CentOS 8

Docker

RHEL replaced Docker on RHEL 8 (CentOS 8) with podman. To install Docker on CentOS, you can do the fallowing steps. Install yum-utils

Add Docker repository

Install Docker with

Enable docker to start on boot

Start docker

Check the status of the docker

Back to docker […]

Read More…

podman

Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. It is compatible with docker cli, so you can alias podman to docker. To install podman on Oracle Linux 8, run

Once installed, […]

Read More…

Build a docker container with Apache

To create a docker container with Apache, create a Dockerfile

Paste following content into the Dockerfile

Now build an image with command

Once image is build, you can see it using docker images command

To start a container with the image, run

See docker build […]

Read More…

Install Odoo using Docker

Odoo is an open source ERP and CRM software written in python. To install Odoo using docker, first install docker using

Odoo use PostgreSQL server to store database. Lets create a postgres docker container.

In above command, replace your-password-here with a secure password. Create a Odoo container with

If container did not […]

Read More…

Run PostgreSQL in Docker

To run PostgreSQL on docker, create a directory for saving the data presistant

run docker container

In above, change the value for POSTGRES_DB, POSTGRES_USER and POSTGRES_PASSWORD as needed. Connect to PostgreSQL server To connect to PostgreSQL server, run

Now you are inside PostgreSQL conainer, to login, run

It will ask for […]

Read More…

Docker compose start container on boot

I have a docker container, that i need to start on server boot. The docker-compose.yml file i used to create this docker container is

With above docker-compose.yml file. i have to start docker container manually after server reboot. To make it auto start, add the line

Here is the modified docker-compose.yml file.

[…]

Read More…

docker-compose: error while loading shared libraries

When running docker-compose on CentOS 7, i get following error

To fix the error, do the following

Now create a new file

Add following content

Make it executable

Create temp folder

Now docker-compose will work. […]

Read More…