1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
dnf install wget -y wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repo dnf install docker-ce docker-ce-cli -y systemctl enable docker --now COMVER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) curl -L "https://github.com/docker/compose/releases/download/$COMVER/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose chmod +x /usr/bin/docker-compose cat << EOF >> /etc/docker/daemon.json { "storage-driver": "overlay2", "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } } EOF |
Подписаться
авторизуйтесь
0 комментариев
Старые