设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Docker 1.1.0发布,新增.dockerignore特性

2014-7-4 12:01| 发布者: joejoe0332| 查看: 2470| 评论: 0|原作者: oschina|来自: oschina

摘要: Docker 很高兴的宣布 1.1.0 版本发布了,提升了整个 Docker 的生态系统,包括更新了 Docker 引擎、Docker Hub 和文档。

  Docker 很高兴的宣布 1.1.0 版本发布了,提升了整个 Docker 的生态系统,包括更新了 Docker 引擎、Docker Hub 和文档。


  Docker 1.1.0 值得关注的改进有:


新的 .dockerignore 功能

你可以添加一个 .dockerignore 文件到你的 `Dockerfile` , Docker 将会在发送构建上下文到守护进程时忽略在 .dockerignore 中指定的文件和目录。

文件示例: https://github.com/dotcloud/docker/blob/master/.dockerignore


提交过程暂停容器

在一个运行中的容器中执行提交动作是不被推荐的,这会导致文件处于不一致的状态。现在你可以在提交过程中暂停容器的运行。

你可以禁用该特性 docker commit --pause=false <container_id>.


Tailing logs

支持查看容器日志的最新内容,例如查看最新 10 行的日志: docker logs --tail 10 <container_id>. 你也可以使用 -f 参数来监控日志最新内容 docker logs --tail 0 -f <container_id>.

其实这个特性跟 Linux 下的 tail 是差不多的


允许 tar 文件作为 Docker 构建的上下文

你可以传递给 docker build 一个 tar 文件来作为上下文,用于自动化 docker build 过程,例如: cat context.tar | docker build - or docker run builder_image | docker build -


在容器中绑定安装整个文件系统

/ 现在允许作为 --volumes 的源。这意味着你可以在需要的时候绑定安装你的整个文件系统。例如 docker run -v /:/my_host ubuntu:ro ls /my_host. 不过不允许安装到 /.


其他方面的改进和变化

  • Port allocation has been improved. In the previous release, Docker could prevent you from starting a container with previously allocated ports which seemed to be in use when in fact they were not. This has been fixed.

  • A bug in docker save was introduced in the last release. The docker save command could produce images with invalid metadata. The command now produces images with correct metadata.

  • Running docker inspect in a container now returns which containers it is linked to.

  • The docker commit flag has improved validation, to better prevent you from committing an image with a name such as  -m. Image names with dashes in them potentially conflict with command line flags.

  • The API now has Improved status codes for  start and stop. Trying to start a running container will now return a 304 error.

  • Performance has been improved overall. Starting the daemon is faster than in previous releases. The daemon’s performance has also been improved when it is working with large numbers of images and containers.

  • Fixed an issue with white-spaces and multi-lines in Dockerfiles.


官方发行说明:http://blog.docker.com/2014/07/announcing-docker-1-1/

下载地址:https://github.com/dotcloud/docker/releases/tag/v1.1.0


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部