ScoutSuite
ScoutSuite copied to clipboard
Docker-compose: "Additional property env_file is not allowed"
When attempting to build the ScoutSuite Docker image from source (following step 2 in the wiki). I receive the below error:
services.ncc-scoutsuite.build Additional property env_file is not allowed
I believe this is a result of two extra unexpected lines in the docker-compose.yml
file.
To Reproduce
On a clean system (e.g. one that does not cache a previous build of the ScoutSuite image), follow the documentation:
- Clone ScoutSuite repository.
- Change to the
ScoutSuite/docker
folder. - Run
docker-compose up --build
. - Receive the error
services.ncc-scoutsuite.build Additional property env_file is not allowed
.
Additional context
I was able to successfully build the Docker container by removing these two lines from the docker-compose.yaml
file.


Alternative right now is build using docker
command rather than docker-compose
like this:
cd ./docker/
docker build -t nccgroup/scoutsuite .
this appears to be fixed. can you confirm whether this is still occurring?
Still occurring for me
PS C:\Tools\Recon\ScoutSuite\docker> docker-compose up --build
WARNING: The VCS_REF variable is not set. Defaulting to a blank string.
WARNING: The VCS_URL variable is not set. Defaulting to a blank string.
WARNING: The VERSION variable is not set. Defaulting to a blank string.
WARNING: The BUILD_DATE variable is not set. Defaulting to a blank string.
WARNING: The VENDOR variable is not set. Defaulting to a blank string.
WARNING: The NAME variable is not set. Defaulting to a blank string.
WARNING: The IMAGE_NAME variable is not set. Defaulting to a blank string.
WARNING: The DESCRIPTION variable is not set. Defaulting to a blank string.
ERROR: The Compose file '.\docker-compose.yaml' is invalid because:
services.ncc-scoutsuite.build contains unsupported option: 'env_file'
Theoretically, this extra addition isn't needed? It's already declared higher up in the file and the documentation seems to suggest that's where it needs to be anyways.
Solved in version 5.12.0