You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
365 B
21 lines
365 B
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
sudo tee /etc/yum.repos.d/docker-ce-stable.repo << EOF
|
|
[docker-ce-stable]
|
|
baseurl=$DOCKER_REPOS_MIRROR_URL/centos/7/\$basearch/stable
|
|
enabled=1
|
|
gpgcheck=1
|
|
gpgkey=$DOCKER_REPOS_MIRROR_URL/centos/gpg
|
|
module_hotfixes=True
|
|
EOF
|
|
|
|
sudo dnf -y install docker-ce
|
|
|
|
sudo systemctl start docker
|
|
sudo docker info
|
|
|
|
echo "Completed $0."
|