高级容器引擎 Docker v1.12.0-rc1 发布

jopen 5年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/d2f43c169b53d4d2dcd40dd8a8099b7c.png" /></p>    <p>Docker 是 PaaS 提供商 dotCloud 开源的一个基于 LXC 的高级容器引擎,源代码托管在 Github 上, 基于go语言并遵从Apache2.0协议开源。</p>    <p><img src="file:///C:/Users/wqm/AppData/Local/Temp/enhtmlclip/Image(3).png" /><img alt="" src="https://simg.open-open.com/show/285e2be57d8d3e7430ec0f7cc3ea17fb.png" /><img alt="" src="https://simg.open-open.com/show/b4353f28e11b981e30ba14ec6613148d.png" /></p>    <h2>更新日志</h2>    <h3>Builder</h3>    <ul>     <li>New <code>HEALTHCHECK</code> Dockerfile instruction to support user-defined healthchecks <a href="/misc/goto?guid=4958991430910607232">#23218</a></li>     <li>New <code>SHELL</code> Dockerfile instruction to specify the default shell when using the shell form for commands in a Dockerfile <a href="/misc/goto?guid=4958991431027124340">#22489</a></li>     <li>Add <code>#escape=</code> Dockerfile directive to support platform-specific parsing of file paths in Dockerfile<a href="/misc/goto?guid=4958991431141919871">#22268</a></li>     <li>Add support for comments in <code>.dockerignore</code> <a href="/misc/goto?guid=4958991431245858498">#23111</a></li>     <li>Support for UTF-8 in Dockerfiles <a href="/misc/goto?guid=4958991431354024428">#23372</a></li>     <li>Skip UTF-8 BOM bytes from <code>Dockerfile</code> and <code>.dockerignore</code> if exist <a href="/misc/goto?guid=4958991431463272939">#23234</a></li>    </ul>    <h3>Contrib</h3>    <ul>     <li>Remove MountFlags in systemd unit to allow shared mount propagation <a href="/misc/goto?guid=4958991431566411897">#22806</a></li>    </ul>    <h3>Distribution</h3>    <ul>     <li>Add <code>--max-concurrent-downloads</code> and <code>--max-concurrent-uploads</code> daemon flags useful for situations where network connections don't support multiple downloads/uploads <a href="/misc/goto?guid=4958991431686867070">#22445</a></li>     <li>Registry operations now honor the <code>ALL_PROXY</code> environment variable <a href="/misc/goto?guid=4958991431796855068">#22316</a></li>     <li>Provide more information to the user on <code>docker load</code> <a href="/misc/goto?guid=4958991431903699665">#23377</a></li>    </ul>    <h3>Logging</h3>    <ul>     <li>Syslog logging driver now supports DGRAM sockets <a href="/misc/goto?guid=4958991432007796526">#21613</a></li>     <li>Add <code>--details</code> option to <code>docker logs</code> to also display log tags <a href="/misc/goto?guid=4958991432122142164">#21889</a></li>     <li>Inherit the daemon log options when creating containers <a href="/misc/goto?guid=4958991432225889303">#21153</a></li>     <li>Remove <code>docker/</code> prefix from log messages tag and replace it with <code>{{.DaemonName}}</code> so that users have the option of changing the prefix <a href="/misc/goto?guid=4958991432340653230">#22384</a></li>    </ul>    <h3>Networking</h3>    <ul>     <li>Add <code>driver</code> filter to <code>network ls</code> <a href="/misc/goto?guid=4958991432468035673">#22319</a></li>     <li>Adding <code>network</code> filter to <code>docker ps --filter</code> <a href="/misc/goto?guid=4958991432599647008">#23300</a></li>     <li>Fix DNS issue when renaming containers with generated names <a href="/misc/goto?guid=4958991432727086892">#22716</a></li>     <li>Allow both <code>network inspect -f {{.Id}}</code> and <code>network inspect -f {{.ID}}</code> to address inconsistency with inspect output <a href="/misc/goto?guid=4958991432861854003">#23226</a></li>     <li>Add <code>--link-local-ip</code> flag to <code>create</code>, <code>run</code> and <code>network connect</code> to specify a container's link-local address <a href="/misc/goto?guid=4958991432988210474">#23415</a></li>    </ul>    <h3>Plugins (experimental)</h3>    <ul>     <li>New <code>plugin</code> command to manager plugins with <code>install</code>, <code>enable</code>, <code>disable</code>, <code>rm</code>, <code>inspect</code>, <code>set</code>subcommands <a href="/misc/goto?guid=4958991433120752810">#23446</a></li>    </ul>    <h3>Remote API (v1.24)</h3>    <ul>     <li>Add <code>before</code> and <code>since</code> filters to <code>docker images --filter</code> <a href="/misc/goto?guid=4958991433248248444">#22908</a></li>     <li>Add <code>--limit</code> option to <code>docker search</code> <a href="/misc/goto?guid=4958991433361386945">#23107</a></li>     <li>Add <code>--filter</code> option to <code>docker search</code> <a href="/misc/goto?guid=4958991433484263412">#22369</a></li>     <li>API now returns a JSON object when an error occurs making it more consistent <a href="/misc/goto?guid=4958991433603210084">#22880</a></li>     <li>Prevent <code>docker run -i --restart</code> from hanging on exit <a href="/misc/goto?guid=4958991433722793093">#22777</a></li>    </ul>    <h3>Runtime</h3>    <ul>     <li>Add <code>--live-restore</code> daemon flag to keep containers running when daemon shuts down, and regain control on startup <a href="/misc/goto?guid=4958991433821646113">#23213</a></li>     <li>Ability to add OCI-compatible runtimes (via <code>--add-runtime</code> daemon flag) and select one with <code>--runtime</code> on <code>create</code> and <code>run</code> <a href="/misc/goto?guid=4958991433936144777">#22983</a></li>     <li>New <code>overlay2</code> graphdriver for Linux 4.0+ with multiple lower directory support <a href="/misc/goto?guid=4958991434044811792">#22126</a></li>     <li>New load/save image events <a href="/misc/goto?guid=4958991434169072794">#22137</a></li>     <li>Add support for reloading daemon configuration through systemd <a href="/misc/goto?guid=4958991434296181861">#22446</a></li>     <li>Add disk quota support for btrfs <a href="/misc/goto?guid=4958991434420598655">#19651</a></li>     <li>Add disk quota support for zfs <a href="/misc/goto?guid=4958991434525287678">#21946</a></li>     <li>Add support for <code>docker run --pid=container:<id></code> <a href="/misc/goto?guid=4958991434657502859">#22481</a></li>     <li>Align default seccomp profile with selected capabilities <a href="/misc/goto?guid=4958991434772581363">#22554</a></li>     <li>Add a <code>daemon reload</code> event when the daemon reloads its configuration <a href="/misc/goto?guid=4958991434900034004">#22590</a></li>     <li>Add <code>trace</code> capability in the pprof profiler to show execution traces in binary form <a href="/misc/goto?guid=4958991435005372181">#22715</a></li>     <li>Add a <code>detach</code> event <a href="/misc/goto?guid=4958991435119573403">#22898</a></li>     <li>Undeprecate the <code>-c</code> short alias of <code>--cpu-shares</code> on <code>run</code>, <code>build</code>, <code>create</code>, <code>update</code> <a href="/misc/goto?guid=4958991435250515203">#22621</a></li>     <li>Prevent from using aufs and overlay graphdrivers on an eCryptfs mount <a href="/misc/goto?guid=4958991435376586176">#23121</a></li>     <li>Fix issues with tmpfs mount ordering <a href="/misc/goto?guid=4958991435503393067">#22329</a></li>     <li>Created containers are no longer listed on <code>docker ps -a -f exited=0</code> <a href="/misc/goto?guid=4958991435629712434">#21947</a></li>     <li>Fix an issue where containers are stuck in a "Removal In Progress" state <a href="/misc/goto?guid=4958991435753763947">#22423</a></li>     <li>Fix bug that was returning an HTTP 500 instead of a 400 when not specifying a command on run/create <a href="/misc/goto?guid=4958991435886687596">#22762</a></li>     <li>Fix bug with <code>--detach-keys</code> whereby input matching a prefix of the detach key was not preserved<a href="/misc/goto?guid=4958991436016830147">#22943</a></li>     <li>SELinux labeling is now disabled when using <code>--privileged</code> mode <a href="/misc/goto?guid=4958991436136261146">#22993</a></li>     <li>If volume-mounted into a container, <code>/etc/hosts</code>, <code>/etc/resolv.conf</code>, <code>/etc/hostname</code> are no longer SELinux-relabeled <a href="/misc/goto?guid=4958991436136261146">#22993</a></li>     <li>Fix inconsistency in <code>--tmpfs</code> behavior regarding mount options <a href="/misc/goto?guid=4958991436278249626">#22438</a></li>     <li>Fix an issue where daemon hangs at startup <a href="/misc/goto?guid=4958991436409751691">#23148</a></li>     <li>Ignore SIGPIPE events to prevent journald restarts to crash docker in some cases <a href="/misc/goto?guid=4958991436539755253">#22460</a></li>    </ul>    <h3>Swarm Mode</h3>    <ul>     <li>New <code>swarm</code> command to manage swarms with <code>init</code>, <code>join</code>, <code>leave</code>, <code>update</code> subcommands <a href="/misc/goto?guid=4958991436695814871">#23361</a></li>     <li>New <code>service</code> command to manage swarm-wide services with <code>create</code>, <code>inspect</code>, <code>update</code>, <code>remove</code>,<code>tasks</code> subcommands <a href="/misc/goto?guid=4958991436695814871">#23361</a></li>     <li>New <code>node</code> command to manage nodes with <code>accept</code>, <code>promote</code>, <code>demote</code>, <code>inspect</code>, <code>update</code>, <code>tasks</code>,<code>ls</code> and <code>rm</code> subcommands <a href="/misc/goto?guid=4958991436695814871">#23361</a></li>     <li>(experimental) New <code>stack</code> and <code>deploy</code> commands to manage and deploy multi-service applications<a href="/misc/goto?guid=4958991436853951800">#23522</a></li>    </ul>    <h3>Volume</h3>    <ul>     <li>Add support for local and global volume scopes (analogous to network scopes) <a href="/misc/goto?guid=4958991436976913904">#22077</a></li>     <li>Mount/Unmount operations now receives an opaque ID to allow volume drivers to differentiate between two callers <a href="/misc/goto?guid=4958991437102889186">#21015</a></li>     <li>Fix issue preventing to remove a volume in a corner case <a href="/misc/goto?guid=4958991437232116522">#22103</a></li>    </ul>    <h3>DEPRECATION</h3>    <ul>     <li>Environment variables <code>DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE</code> and<code>DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE</code> have been renamed to<code>DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE</code> and <code>DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE</code>respectively <a href="/misc/goto?guid=4958991437360532782">#22574</a></li>     <li>Remove deprecated <code>syslog-tag</code>, <code>gelf-tag</code>, <code>fluentd-tag</code> log option in favor of the more generic<code>tag</code> one <a href="/misc/goto?guid=4958991437478816723">#22620</a></li>     <li>Remove deprecated feature of passing HostConfig at API container start <a href="/misc/goto?guid=4958991437619981589">#22570</a></li>     <li>Remove deprecated <code>-f</code>/<code>--force</code> flag on docker tag <a href="/misc/goto?guid=4958991437745780534">#23090</a></li>     <li>Remove deprecated <code>/containers/<id|name>/copy</code> endpoint <a href="/misc/goto?guid=4958991437872146312">#22149</a></li>     <li>Deprecate the old 3-args form of <code>docker import</code> <a href="/misc/goto?guid=4958991438000760546">#23273</a></li>    </ul>    <h2>下载</h2>    <blockquote>     <ul>      <li><strong>deb/rpm install</strong>: <code>curl -fsSL https://test.docker.com/ | sh</code></li>      <li><strong>Linux 64bit tgz</strong>: <a href="/misc/goto?guid=4958991438130143762">https://test.docker.com/builds/Linux/x86_64/docker-1.12.0-rc1.tgz</a></li>      <li><strong>Darwin/OSX 64bit client tgz</strong>: <a href="/misc/goto?guid=4958991438260984737">https://test.docker.com/builds/Darwin/x86_64/docker-1.12.0-rc1.tgz</a></li>      <li><strong>Windows 64bit zip</strong>: <a href="/misc/goto?guid=4958991438394300543">https://test.docker.com/builds/Windows/x86_64/docker-1.12.0-rc1.zip</a></li>      <li><strong>Windows 32bit client zip</strong>: <a href="/misc/goto?guid=4958991438531788510">https://test.docker.com/builds/Windows/i386/docker-1.12.0-rc1.zip</a></li>      <li><a href="/misc/goto?guid=4958991438658659111" rel="nofollow"><strong>Source code</strong> (zip)</a></li>      <li><a href="/misc/goto?guid=4958991438790493433" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>     </ul>    </blockquote>    <p> </p>    <p> </p>