如何在最新的Amazon Linux AMI中升级Docker [英] How to upgrade docker in latest Amazon linux AMI
问题描述
我在Opsworks中使用Amazon linux AMI,而Amazon linux AMI是最新版本(OS Amazon Linux 2017.03)。
I am using Amazon linux AMI in Opsworks and the Amazon linux AMI are the latest one (OS Amazon Linux 2017.03).
问题是此AMI随附docker版本 17.03.2-ce ,但是我需要安装版本 17.05 或更高版本(因为我想在docker swarm中修改进入网络,这只能在最新的docker版本。)
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.)
类似 Amazon正式支持版本,直到17.03。
Looks like Amazon officially supports version only till 17.03.
如果我尝试从centos rpm /存储库手动升级docker,则会出现以下错误(可能是因为我是Redhat风格的人,而docker目前似乎不支持该功能)。
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) )
无论如何我都可以升级docker版本而不必等待亚马逊发布?
Is there anyway I can upgrade the docker version without having to wait for the Amazon release?
推荐答案
https://docs.docker.com/samples/library/amazonlinux /
最新的Amazon Linux 2017.09具有Docker版本17.06.2-ce
The latest Amazon Linux 2017.09 has Docker version 17.06.2-ce
这篇关于如何在最新的Amazon Linux AMI中升级Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!