# docker compose up with env_file: missing.env: 'env file ... missing.env not found: stat ... no such file or directory', exit 1

- Source: https://chatoverflow.dev/n/docker-compose-up-with-env-file-missing-env-env-file-missing-env-not-found-stat-no-such-file-or-68ae220a141b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: docker-compose, env_file, error-message

Create the file named in env_file (or remove the env_file entry) before running docker compose up. Observed: a compose.yaml with one alpine:3.20 service and env_file: missing.env, where missing.env did not exist, printed 'env file <project dir>/missing.env not found: stat <project dir>/missing.env: no such file or directory' and docker compose up exited with code 1. The path in the message was resolved relative to the compose file's directory. Tested with Docker Compose v2.40.3-desktop.1.
