Note how to build a Docker environment with Redhat
yum update
yum upgrade
yum install -y yum-utils device-mapper-persistent-data lvm2
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
yum install docker-io
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --bip=172.20.250.1/24 -g /var/lib/docker'
systemctl daemon-reload
systemctl start docker
systemctl enable docker
systemctl status docker
journalctl -eu docker
curl -L "https://github.com/docker/compose/releases/download/【version】/docker-compose-$(uname -s)-$(uname -m)" -o /bin/docker-compose
chmod +x /bin/docker-compose
Recommended Posts