Docker 1.5 正式发布,完全支持 IPv6
Docker 1.5 正式发布,此版本值得关注的特性有:IPv6 支持;可以使用 --read-only
标记来限制文件系统为只读容器;新增一个统计数据 API 终端和 CLI 命令,可以统计容器的在线 CPU,内存,网络 IO 和阻塞 IO;在构建的时候可以指定 Dockerfile。
Docker 1.5 总数据说明:
-
783 commits
-
86 contributors
-
+9,076 -2,964 line changes
二进制获取:
支持 IPv6:Ubuntu/Debian: https://get.
docker.com/ubuntu or curl -sSL https://get.docker.com/ | shLinux 64bit binary: https://get.docker.
com/builds/Linux/x86_64/ docker-1.5.0 Darwin/OSX 64bit client binary: https://get.docker.
com/builds/Darwin/x86_64/ docker-1.5.0 Darwin/OSX 32bit client binary: https://get.docker.
com/builds/Darwin/i386/docker- 1.5.0 Linux 64bit tgz: https://get.docker.com/
builds/Linux/x86_64/docker-1. 5.0.tgz
# run the nginx container $ docker run -d -p 80:80 --restart always --name ipv6-nginx nginx # exec into it to change the default config to support ipv6 $ docker exec -it ipv6-nginx bash # edit the /etc/nginx/conf.d/default.conf # under listen 80; # add the following line: # listen [::]:80 # restart the nginx service # this will also pop you out of the container # and back to your host root@container # service nginx restart # get the global ipv6 address $ docker inspect --format="{{.NetworkSettings.GlobalIPv6Address}}" ipv6-nginx 2a00:1450::242:ac11:5e $ curl -6 -g [2a00:1450::242:ac11:5e]
统计示例:
更多内容请看发行说明,更新日志。也可以参考之前发布的 RC 版本:
Docker 1.5 RC1,Docker 1.5 RC2,Docker 1.5 RC4。
来自:http://www.oschina.net/news/59589/docker-1-5-0-support-ipv6