mirror of https://github.com/docker/docs.git
Merge pull request #2649 from dgageot/2540-honor-engine-install-url
FIX #2540 provisioners honor engine-install-url
This commit is contained in:
commit
5ee9dfdc94
|
|
@ -62,13 +62,10 @@ func (provisioner *DebianProvisioner) Package(name string, action pkgaction.Pack
|
|||
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||
// run the force remove on the existing lxc-docker package
|
||||
// and remove the existing apt source list
|
||||
// also re-run the get.docker.com script to properly setup
|
||||
// the system again
|
||||
|
||||
commands := []string{
|
||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||
"apt-get remove -y lxc-docker || true",
|
||||
"curl -sSL https://get.docker.com | sh",
|
||||
}
|
||||
|
||||
for _, cmd := range commands {
|
||||
|
|
|
|||
|
|
@ -78,13 +78,10 @@ func (provisioner *UbuntuSystemdProvisioner) Package(name string, action pkgacti
|
|||
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||
// run the force remove on the existing lxc-docker package
|
||||
// and remove the existing apt source list
|
||||
// also re-run the get.docker.com script to properly setup
|
||||
// the system again
|
||||
|
||||
commands := []string{
|
||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||
"apt-get remove -y lxc-docker || true",
|
||||
"curl -sSL https://get.docker.com | sh",
|
||||
}
|
||||
|
||||
for _, cmd := range commands {
|
||||
|
|
|
|||
|
|
@ -97,13 +97,10 @@ func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.Pack
|
|||
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||
// run the force remove on the existing lxc-docker package
|
||||
// and remove the existing apt source list
|
||||
// also re-run the get.docker.com script to properly setup
|
||||
// the system again
|
||||
|
||||
commands := []string{
|
||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||
"apt-get remove -y lxc-docker || true",
|
||||
"curl -sSL https://get.docker.com | sh",
|
||||
}
|
||||
|
||||
for _, cmd := range commands {
|
||||
|
|
|
|||
Loading…
Reference in New Issue