Beachten Sie, wie Sie eine Docker-Umgebung unter Amazon Linux 2 erstellen
yum update
yum upgrade
yum install docker-io
OPTIONS='--selinux-enabled --log-driver=journald --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