.DOCKERIGNORE 文件扩展名

Docker Ignore File

开发者 Docker
受欢迎程度
2.0  |  1 
 

什么是 DOCKERIGNORE 文件?

A DOCKERIGNORE file is a build configuration file used by Docker, an application packaging and distribution platform. It contains a list of files and directories Docker will ignore when building an associated application. DOCKERIGNORE files are typically named .dockerignore.

更多信息

在 Microsoft Visual Studio Code 中打开的 .dockerignore 文件截图
在 Microsoft Visual Studio Code 中打开的 DOCKERIGNORE 文件

Developers use Docker to build and distribute applications via containers. When building an application with Docker, developers may want to tell Docker to ignore certain files and directories included in the application's project directory. (Ignoring these files and directories speeds up the build process, by avoiding sending unnecessary files to Docker's build client.)

To do so, developers create a DOCKERIGNORE file. Each DOCKERIGNORE file is a plain text file that typically begins with the text # .dockerignore and then specifies the list of files and directories the Docker build client should ignore when building the associated application. Usually, developers create a single DOCKERIGNORE file for use with each app project, and they place it in the app's root directory. However, in some cases, developers may end up creating multiple DOCKERIGNORE files for use with a project (e.g., if the project uses multiple Dockerfiles).

常见 .DOCKERIGNORE 文件名

.dockerignore - The default name for DOCKERIGNORE files stored in a Docker project's root directory.

如何打开 DOCKERIGNORE 文件

You can open and edit a DOCKERIGNORE file with Microsoft Visual Studio Code or any other text editor. For more information on how to use DOCKERIGNORE files with Docker, click here.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 DOCKERIGNORE 文件的程序

分类: 开发者
更新时间: 2023-10-17

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Docker Ignore 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们