We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d6070 commit 0b242c7Copy full SHA for 0b242c7
plugins/provisioners/docker/cap/redhat/docker_install.rb
@@ -8,11 +8,14 @@ def self.docker_install(machine)
8
machine.ui.warn("Docker is not supported on RHEL 8 machines.")
9
raise DockerError, :install_failed
10
end
11
-
+
12
machine.communicate.tap do |comm|
13
comm.sudo("yum -q -y update")
14
comm.sudo("yum -q -y remove docker-io* || true")
15
- comm.sudo("curl -fsSL https://get.docker.com/ | sh")
+ 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")
19
20
21
case machine.guest.capability("flavor")
0 commit comments