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