[Linux] Docker environment construction on Redhat

Introduction

Note how to build a Docker environment with Redhat

Environmental information

Docker environment construction

update yum

yum update

Upgrade yum

yum upgrade

Install the required packages

yum install -y yum-utils device-mapper-persistent-data lvm2

Enable repository

yum-config-manager --enable rhel-7-server-rhui-optional-rpms
yum-config-manager --enable rhel-7-server-rhui-rh-common-rpms
yum-config-manager --enable rhel-7-server-rhui-rpms
yum-config-manager --enable rhel-7-server-rhui-extras-rpms

docker installation

yum install docker-io

Modify configuration file

OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --bip=172.20.250.1/24 -g /var/lib/docker'

Docker service enabled

systemctl daemon-reload
systemctl start docker
systemctl enable docker

Docker startup confirmation

systemctl status docker

Check the log if it does not start normally

journalctl -eu docker

When using Docker-compose

docker-compose download

curl -L "https://github.com/docker/compose/releases/download/【version】/docker-compose-$(uname -s)-$(uname -m)" -o /bin/docker-compose

Grant execute permission to docker-compose

chmod +x /bin/docker-compose

Recommended Posts

[Linux] Docker environment construction on Redhat
Linux environment construction (on WSL environment)
Linux environment construction
Environment construction: GCP + Docker
Anaconda environment construction on CentOS7
First LAMP environment construction (Linux)
Docker + Django + React environment construction
[Tensorflow] Tensorflow environment construction on Windows 10
DL Laravel environment construction method (Linux)
Linux beginners create Ubuntu 16.04 environment on Docker (for Mac)-first half-
Anaconda python environment construction on Windows 10
Anaconda environment construction on Mac (2018 version)
Create a VS Code + Docker development environment on a Linux VM
About Linux environment construction (VMware VirtualBOX)
Completion of docker command on Linux
Python environment construction memo on Mac
Create a Linux environment on Windows 10
Python development environment construction on macOS
Python environment construction procedure memo using Docker on Windows10 Home
Environment construction of python3.8 on mac
code-server online environment (5) Launch code-server on Docker
Memo of Linux environment construction using VirtualBox + Vagrant on Windows 10
Introduce Python 3.5.2 environment on Amazon Linux
Data science environment construction with Docker
[docker] python3.5 + numpy + matplotlib environment construction
Environment construction of "Tello_Video" on Ubuntu
OpenCV3 & Python3 environment construction on Ubuntu
Build an LNPP environment on Amazon Linux 2
Created Ubuntu, Python, OpenCV environment on Docker
Dockerfile: Install Docker on your Linux server
GeoDjango + SQLite environment construction on OS X
[Linux] Build a jenkins environment with Docker
Run Keycloak on Amazon Linux 2 without Docker
Install rJava on Linux in R3.6 environment.
[Linux] Build a Docker environment with Amazon Linux 2
Django environment construction
DeepIE3D environment construction
pykintone on Docker
Emacs-based environment construction
Python environment construction
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]
Linux (CentOS) construction
Environment construction (python)
django environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Python environment construction
Golang environment construction
python environment construction
Word2vec environment construction
Build a LAMP environment on your local Docker
[Note] Python environment construction on rental server "CORESERVER"
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Deployment method (2) (EC2 environment construction / Linux / MySQL settings)
Pillow environment construction --For Docker + iPython (and OpenCV)
Set up an Objective-C 2.0 development environment on Linux
How to build Java environment on Ubuntu (Linux)
Build an Arch Linux environment on Raspberry Pi
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook