[Linux] Build a Docker environment with Amazon Linux 2

Introduction

Note how to build a Docker environment on Amazon Linux 2

Environmental information

Docker environment construction

update yum

yum update

Upgrade yum

yum upgrade

docker installation

yum install docker-io

Modify configuration file

OPTIONS='--selinux-enabled --log-driver=journald --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] Build a Docker environment with Amazon Linux 2
[Linux] Build a jenkins environment with Docker
[Python] Build a Django development environment with Docker
Build a development environment with Poetry Django Docker Pycharm
How to build a Python environment on amazon linux 2
Prepare pipenv environment with amazon Linux 2
Build a go environment using Docker
Build a deb file with Docker
Build Mysql + Python environment with docker
Build PyPy execution environment with Docker
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
Build Azure Pipelies with Azure DevOps in a Linux self-hosted environment
[Memo] Build a development environment for Django + Nuxt.js with Docker
[Django] Build a Django container (Docker) development environment quickly with PyCharm
Create a Todo app with Django ① Build an environment with Docker
Easily build a development environment with Laragon
Build a Tensorflow environment with Raspberry Pi [2020]
Build a Fast API environment with docker-compose
Get a local DynamoDB environment with Docker
Build an LNPP environment on Amazon Linux 2
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
Build NGINX + NGINX Unit + MySQL environment with Docker
Create a Docker container image with JRE8 / JDK8 on Amazon Linux
[DynamoDB] [Docker] Build a development environment for DynamoDB and Django with docker-compose
Build a LAMP environment on your local Docker
Build a C language development environment with a container
Build a WardPress environment on AWS with pulumi
Build Django + NGINX + PostgreSQL development environment with Docker
Go (Echo) Go Modules × Build development environment with Docker
Build a python environment with ansible on centos6
Create a python3 build environment with Sublime Text3
Build a Django environment with Vagrant in 5 minutes
[Memo] Build a virtual environment with Pyenv + anaconda
Build a virtual environment with pyenv and venv
Build a Django development environment with Doker Toolbox
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
Build PyPy and Python execution environment with Docker
Build a mruby development environment for ESP32 (Linux)
Build a Python machine learning environment with a container
Build a python execution environment with VS Code
Procedure for building a kube environment on amazon linux2 (aws) ~ (with bonus)
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a python environment for each directory with pyenv-virtualenv
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Build a LAMP environment [CentOS 7]
How to build a Django (python) environment on docker
Prepare python3 environment with Docker
[Go + Gin] I tried to build a Docker environment
Build a machine learning application development environment with Python
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a machine learning environment
Build a Python environment offline
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Build a Django environment for Win10 (with virtual space)
Build a lightweight Fast API development environment using Docker
[Linux] Create a self-signed certificate with Docker and apache