You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] exec attempts to validate env_file for a different non-dependent service #13601
Given two services foo and bar where foo defines an env_file entry as a non-existent file. Running docker compose exec bar ... fails due to "env file not found".
This is inconsistent with e.g. docker compose up bar which runs successfully without attempting to validate the env_file of service foo
changed the title [-][BUG] docker compose exec <service> <command> attempts to validate env_file for a different non-dependent service[/-][+][BUG] docker compose exec attempts to validate env_file for a different non-dependent service[/+]on Feb 20, 2026
changed the title [-][BUG] docker compose exec attempts to validate env_file for a different non-dependent service[/-][+][BUG] exec attempts to validate env_file for a different non-dependent service[/+]on Feb 20, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
[-][BUG] docker compose exec <service> <command> attempts to validate env_file for a different non-dependent service[/-][+][BUG] docker compose exec attempts to validate env_file for a different non-dependent service[/+][-][BUG] docker compose exec attempts to validate env_file for a different non-dependent service[/-][+][BUG] exec attempts to validate env_file for a different non-dependent service[/+]maxproske commentedon Feb 21, 2026
This is a gap from #13156 where I fixed ps/logs/down but missed exec and some other commands. PR incoming.
github-actions commentedon Jul 26, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Add SkipResolveLabels option to skip label_file resolution
Add SkipResolveLabels option to skip label_file resolution