我想在Amazon Linux上将Docker升级到v1.8.
在撰写本文时,他们的内部yum包存储库具有:Docker版本1.7.1,build 786b29d / 1.7.1.
我已经尝试过的事情
Error: Package: docker-engine-1.8.2-1.el7.centos.x86_64 (dockerrepo)
Requires: systemd-units
如果您正在使用EC2 Container服务,则在撰写本文时,AWS ECS-optimized AMI(2015.09.b)正在运行docker-1.7.1. A post in the AWS forums声明“[AWS正在测试1.9 RC并计划在本月交付它.”
原文链接:https://www.f2er.com/docker/436898.html为了扩展Hzmy的答案,以下是在SSH会话中将Docker升级到1.9.0的方法:
service docker stop
cp /usr/bin/docker /usr/bin/docker.old
curl -o /usr/bin/docker https://get.docker.com/builds/Linux/x86_64/docker-1.9.0
service docker start
如果您正在使用CloudFormation模板,请输入以下命令:AWS::Cloudformation::Init:
...
"commands": {
...,"03_upgrade_docker_for_log_driver_support": {
"command": {
"Fn::Join": [
"",[
"#!/bin/bash -xe\n","service docker stop\n","cp /usr/bin/docker /usr/bin/docker.old\n","curl -o /usr/bin/docker https://get.docker.com/builds/Linux/x86_64/docker-1.8.3\n","service docker start\n"
]
]
}
}
...
}
...
也许不是最干净的,但它似乎对我有用.