Difference between revisions of ".dockerignore"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The <code>.dockerignore</code> file allows you to exclude files from the context like a . gitignore file allow you to exclude files from your git repository. You can use it to help avoid unnecessarily sending large or sensitive files and directories to the docker daemon. | + | The <code>.dockerignore</code> file allows you to exclude files from the context like a <code>[[.gitignore]]</code> file allow you to exclude files from your git repository. You can use it to help avoid unnecessarily sending large or sensitive files and directories to the docker daemon. |
== Related terms == | == Related terms == | ||
* <code>[[docker-compose]]</code> | * <code>[[docker-compose]]</code> | ||
+ | * <code>[[docker build]]</code> | ||
* <code>[[.gitignore]]</code> file | * <code>[[.gitignore]]</code> file | ||
+ | * <code>=> => [[transferring context]]: 2B</code> | ||
== See also == | == See also == | ||
+ | * {{docker build}} | ||
* {{Docker}} | * {{Docker}} | ||
− | + | ||
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 06:06, 28 June 2022
The .dockerignore
file allows you to exclude files from the context like a .gitignore
file allow you to exclude files from your git repository. You can use it to help avoid unnecessarily sending large or sensitive files and directories to the docker daemon.
Related terms[edit]
docker-compose
docker build
.gitignore
file=> => transferring context: 2B
See also[edit]
docker build [ --tag | --platform | --help ] FROM, Dockerfile, .dockerignore, requirements.txt, docker build --help, docker tag
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: