Skip to content

Commit 0b242c7

Browse files
committed
Install docker using docker repo instead of convenience script
This approach will be more stable than depending on a convenience script provided by docker ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script
1 parent f7d6070 commit 0b242c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/provisioners/docker/cap/redhat/docker_install.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ def self.docker_install(machine)
88
machine.ui.warn("Docker is not supported on RHEL 8 machines.")
99
raise DockerError, :install_failed
1010
end
11-
11+
1212
machine.communicate.tap do |comm|
1313
comm.sudo("yum -q -y update")
1414
comm.sudo("yum -q -y remove docker-io* || true")
15-
comm.sudo("curl -fsSL https://get.docker.com/ | sh")
15+
comm.sudo("yum install -y -q yum-utils")
16+
comm.sudo("yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo")
17+
comm.sudo("yum makecache")
18+
comm.sudo("yum install -y -q docker-ce")
1619
end
1720

1821
case machine.guest.capability("flavor")

0 commit comments

Comments
 (0)