DOCKERIGNORE

dockerignore icon

Docker ignore configuration file

File type: Configuration file

A Docker ignore file is a plain-text configuration file used by Docker to specify which files and directories to exclude from a build context.

What is dockerignore file?

File type category:
Configuration file

Date updated: November 14, 2026

Docker, developed by Docker, Inc., is a platform for building and running containerized applications. The .dockerignore file is part of Docker's image build process.

The file contains exclusion patterns for files and directories in the build context. Docker reads it from the context's root and uses it to omit matching items when preparing the context for a build.

The plain-text file is used with Docker across its supported platforms, including Linux, macOS, and Windows. It remains part of Docker's build workflow.

How to open dockerignore file?

Open the .dockerignore file with a plain-text editor to view or change its patterns. Docker reads it automatically when building an image, provided it is in the build context root.

How to convert dockerignore file?

Conversion is not normally needed: Docker reads the file as plain text. To change which items are excluded, edit its patterns in a text editor and save it as a .dockerignore file.

Suggested software to open dockerignore file:

Associated software actions with the dockerignore file

Software apps that create dockerignore files:

Multiplatform

Software apps that manage or store settings in dockerignore files:

Multiplatform

Related file extensions