现在你的Dockerfile 应该看起来像这样的:. By now, your Dockerfile should look like this:. Let's have a look at the Dockerfile :. NETCore应用程序开始,Dockerfile 看起来像这样:. NET Core app, and the Dockerfile looks like this. 编写一个使用Python2作为基本映像的Dockerfile 。 Write a Dockerfile that uses Python 2 as a base image.
First, you use the Dockerfile to build the image. Dockerfile 和dockerbuild命令都已经支持。Dockerfiles and the docker build command are supported.这些指令都保存在一个叫做Dockerfile 的文件中. These instructions are stored in a file called a Dockerfile . 它可以为你生成Dockerfile ,让你快速开始学习。 It can build a Dockerfile for you and jump-start the learning process. 这些可移植映像由称为Dockerfile 的东西定义。 These portable images are defined by something called a Dockerfile . 开发人员可以使用Dockerfile 轻松创建和管理应用程序。 Developers can easily create and manage applications using Dockerfiles . 这些可移植图像由称为Dockerfile 的东西定义。 These portable images are defined by something called a Dockerfile . Dockerfile 是一个用于构建Docker容器的脚本化系统。Dockerfile is a system for scripting the construction of Docker containers.这些可移植的镜像是由称为Dockerfile 的东西定义的。 These portable images are defined by something called a Dockerfile . 事实就是,Dockerfile 格式并不能很好地支持这个区别。 Fact is that the Dockerfile format does not support this separation very well. 这些指令保存在一个称为Dockerfile 的文件中。 These instructions are stored in a file called a Dockerfile . Dockerfile 是对Docker容器创建过程进行脚本化的系统。Dockerfile is a system for scripting the construction of Docker containers.该过程包括添加Dockerfile 、创建任务定义以及将它与群集关联起来。 It involves adding a Dockerfile , creating a task definition, and associating it with a cluster. 例如,Dockerfile 等内容并不包括在OCI规范中。 For example, things such as the Dockerfile are not included in the OCI specifications. Docker让用户可以快速轻松地使用Docker,帮助创作Dockerfile 和docker-compose. Docker lets you quickly and easily work with Docker, helping author Dockerfile and docker-compose. 如果修改了Dockerfile ,并重新构建镜像,只有发生了修改的层才会被重建。 When you change the Dockerfile and rebuild the image, only those layers which have changed are rebuilt. 我第一步是编写Dockerfile 的原始版本:下载源码,运行. The first step Itake is to write the naïve version of the Dockerfile : download the source, run. 最后,请务必在命令末尾包含句点;这样可告知Docker在当前目录中查找Dockerfile 。 Please note the dot at the end of the command, this tells Docker to look for the Dockerfile in the current directory. 函数所做的就这些已--不需要管理Dockerfile ,更新app只需要简单的更新Fission函数即可。 That's all there is- there's no Dockerfile to manage, and updating the app is as simple as calling fission function update. Dockerfile 是一种声明式的方法,用于定义用户可以在命令行上调用的所有命令,从而组装镜像。Dockerfile is a declarative way to define all the commands a user could call on the command line in order to assemble an image. 我从根本上不明白docker缓存,并用20分钟时间来等待单个更改到Dockerfile 通过。 I fundamentally did not understand the docker cache and would spend 20 minutes waiting for a single change to a Dockerfile to come through. Dockerfile 也可以说明容器对外的端口,启动时的工作目录和缺省执行的命令。The Dockerfile can also specify ports to be exposed, the working directory when a container is started and the default command on startup. 这种配置是通过一个名为Dockerfile 的文件完成的,Dockerfile本质上是Docker用来构建容器镜像的蓝图。 This configuration is accomplished through a file called the Dockerfile , which is essentially a blueprint that Docker uses to build container images. 这种文件系统的分层方法也被Dockerfile 的DevOps工具所利用,这些工具能够缓存成功完成的操作。 The layering approach in the filesystem is also exploited by the Dockerfile DevOps tool, which is able to cache operations that have already completed successfully. 这种分层的方式也被Dockerfile DevOps工具充分利用,这可以缓存那些已经成功完成的操作。 The layering approach in the filesystem is also exploited by the Dockerfile DevOps tool, which is able to cache operations that have already completed successfully.
展示更多例子
结果: 59 ,
时间: 0.0189
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt