Docker 1.5 正式發布,完全支持 IPv6

jopen 9年前發布 | 9K 次閱讀 Docker

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

二進制獲取:

Ubuntu/Debianhttps://get.docker.com/ubuntu or curl -sSL https://get.docker.com/ | sh

Linux 64bit binaryhttps://get.docker.com/builds/Linux/x86_64/docker-1.5.0

Darwin/OSX 64bit client binaryhttps://get.docker.com/builds/Darwin/x86_64/docker-1.5.0

Darwin/OSX 32bit client binaryhttps://get.docker.com/builds/Darwin/i386/docker-1.5.0

Linux 64bit tgzhttps://get.docker.com/builds/Linux/x86_64/docker-1.5.0.tgz

支持 IPv6:
# 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]

 統計示例:

Docker 1.5 正式發布,完全支持 IPv6

更多內容請看發行說明更新日志。也可以參考之前發布的 RC 版本:

Docker 1.5 RC1Docker 1.5 RC2Docker 1.5 RC4

來自:http://www.oschina.net/news/59589/docker-1-5-0-support-ipv6

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!