Search code examples
dockerdocker-swarm

Installing 1.12 version on Amazon Linux AMI


This page works as expected if I choose Ubuntu 14.04 image.

https://docs.docker.com/engine/installation/cloud/cloud-ex-aws/

But If I choose Amazon Linux AMI, (the first one in the list shown in the image) then I am not able to install 1.12 version of docker.

I can however install older version using ...

yum install docker 

But I am trying to install the latest 1.12 version on Amazon Linux AMI. Any suggestion will be appreciated.


Solution

  • As of mid-October 2016, this is not possible: https://github.com/docker/docker/issues/27313

    Long story short, it appears that there needs to be some coordination between the AWS & Docker folks and that coordination hasn't happened yet: https://github.com/docker/docker/pull/17283#issuecomment-163456402

    Couple options:

    1. Wait until that process completes and a new AWS Linux AMI is released where when you could just run $ sudo yum install -y docker and be more or less up & running w/ 1.12

    2. Select a different AMI which will require additional installation/config depending on your requirements

    ex. You mentioned you tried the Ubuntu 14.04 AMI. If you SSH'd to that instance & tried to copy some large files from S3 and unzip them on the host machine in order to mount them as volumes into your containers, you'd have a problem. The Ubuntu 14.04 AMI doesn't have the aws-cli tool installed nor the "unzip" command out of the box (nor docker for that matter)-- so you'd need to read over http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os and run $ sudo apt-get unzip in order to get up and running. The AWS Linux AMI has a lot more bells & whistles out of the box. If you don't mind the config work and using a slightly different repository system, this isn't a bad option in the meantime.)