acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

Pin swarmmode to Stable / 17.03

Open carlfischer1 opened this issue 9 years ago • 1 comments

Is this a request for help?: No

Is this an ISSUE or FEATURE REQUEST? (choose one): Issue

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Swarmmode aka Docker CE for ACS

What happened: MSFT wants to pin the Docker version in use for the swarmmode orchestrator to the latest version in the Stable channel, which is presently 17.03. Currently Docker installation is performed via get.docker.com which does not allow specifying either a channel or a version, instead providing the latest version from the Edge channel only (presently 17.05).

What you expected to happen: Default installation includes current Docker Stable version (17.03)

How to reproduce it (as minimally and precisely as possible): 1 - Create a swarm using https://github.com/Azure/azure-quickstart-templates/tree/master/101-acsengine-swarmmode 2 - ssh to a master node 3 - run docker version

observed Current edge version (17.05)

cfischer@swarmm-master-13957614-0:~$ docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64
 Experimental: false

Anything else we need to know:

Instructions for modifying https://github.com/Azure/acs-engine/blob/master/parts/configure-swarmmode-cluster.sh

From https://docs.docker.com/engine/installation/linux/ubuntu/#install-docker, instead of calling get.docker.com in https://github.com/Azure/acs-engine/blob/master/parts/configure-swarmmode-cluster.sh#L148 using the following steps to perform a standard Ubuntu install and specify the Stable channel and version 17.03:

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update

sudo apt-get install docker-ce=17.03*

carlfischer1 avatar Jun 12 '17 19:06 carlfischer1

cc @rgardler

carlfischer1 avatar Jun 12 '17 19:06 carlfischer1