elastic / stack-docker

Project no longer maintained.
Apache License 2.0
1.18k stars 448 forks source link

Issue in sudo docker-compose -f setup.yml up #106

Open guruprasanthexzatech opened 4 years ago

guruprasanthexzatech commented 4 years ago

I ran the following command sudo docker-compose -f setup.yml up after pulling request from github. Then i got the error ERROR: Version in "./setup.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Then in setup.yml and docker-compose.yml i changed the version to 3.3 and then ran the command and then i got the following error. WARNING: The PWD variable is not set. Defaulting to a blank string. Creating stackdocker_setup_1 ... Creating stackdocker_setup_1 ... error

ERROR: for stackdocker_setup_1 Cannot create container for service setup: invalid volume specification: '.:.:rw': invalid mount config for type "volume": invalid mount path: '.' mount path must be absolute

ERROR: for setup Cannot create container for service setup: invalid volume specification: '.:.:rw': invalid mount config for type "volume": invalid mount path: '.' mount path must be absolute ERROR: Encountered errors while bringing up the project.

Iam using ubuntu Ubuntu 18.04.3 LTS and using docker-compose version 1.17.1