How to upgrade docker in latest Amazon linux AMI

谁说我不能喝 提交于 2019-12-23 13:08:55

问题


I am using Amazon linux AMI in Opsworks and the Amazon linux AMI are the latest one (OS Amazon Linux 2017.03).

The issue is that this AMI comes with docker version 17.03.2-ce, however I need to install version 17.05 or later (because I want to modify "ingress" network in docker swarm which is only possible in the latest docker versions.)

Looks like Amazon officially supports version only till 17.03.

If I try to upgrade the docker manually from the centos rpm/repository, I get the following error(possibly because I an in Redhat flavour and docker doesn't seem to support that at the moment):

--> Finished Dependency Resolution
Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
       Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
       Requires: systemd-units
Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
       Requires: libsystemd.so.0()(64bit)
Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
       Requires: container-selinux >= 2.9
You could try using --skip-broken to work around the problem

cat /proc/version

Linux version 4.9.43-17.38.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) )

Is there anyway I can upgrade the docker version without having to wait for the Amazon release?


回答1:


https://docs.docker.com/samples/library/amazonlinux/

The latest Amazon Linux 2017.09 has Docker version 17.06.2-ce



来源:https://stackoverflow.com/questions/46030256/how-to-upgrade-docker-in-latest-amazon-linux-ami

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!