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" {
|
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||||
// run the force remove on the existing lxc-docker package
|
// run the force remove on the existing lxc-docker package
|
||||||
// and remove the existing apt source list
|
// and remove the existing apt source list
|
||||||
// also re-run the get.docker.com script to properly setup
|
|
||||||
// the system again
|
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||||
"apt-get remove -y lxc-docker || true",
|
"apt-get remove -y lxc-docker || true",
|
||||||
"curl -sSL https://get.docker.com | sh",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cmd := range commands {
|
for _, cmd := range commands {
|
||||||
|
|
|
||||||
|
|
@ -78,13 +78,10 @@ func (provisioner *UbuntuSystemdProvisioner) Package(name string, action pkgacti
|
||||||
if action == pkgaction.Upgrade && name == "docker-engine" {
|
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||||
// run the force remove on the existing lxc-docker package
|
// run the force remove on the existing lxc-docker package
|
||||||
// and remove the existing apt source list
|
// and remove the existing apt source list
|
||||||
// also re-run the get.docker.com script to properly setup
|
|
||||||
// the system again
|
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||||
"apt-get remove -y lxc-docker || true",
|
"apt-get remove -y lxc-docker || true",
|
||||||
"curl -sSL https://get.docker.com | sh",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cmd := range commands {
|
for _, cmd := range commands {
|
||||||
|
|
|
||||||
|
|
@ -97,13 +97,10 @@ func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.Pack
|
||||||
if action == pkgaction.Upgrade && name == "docker-engine" {
|
if action == pkgaction.Upgrade && name == "docker-engine" {
|
||||||
// run the force remove on the existing lxc-docker package
|
// run the force remove on the existing lxc-docker package
|
||||||
// and remove the existing apt source list
|
// and remove the existing apt source list
|
||||||
// also re-run the get.docker.com script to properly setup
|
|
||||||
// the system again
|
|
||||||
|
|
||||||
commands := []string{
|
commands := []string{
|
||||||
"rm /etc/apt/sources.list.d/docker.list || true",
|
"rm /etc/apt/sources.list.d/docker.list || true",
|
||||||
"apt-get remove -y lxc-docker || true",
|
"apt-get remove -y lxc-docker || true",
|
||||||
"curl -sSL https://get.docker.com | sh",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cmd := range commands {
|
for _, cmd := range commands {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue