Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

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

Open
guruprasanthexzatech opened this issue Feb 13, 2020 · 0 comments
Open

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

guruprasanthexzatech opened this issue Feb 13, 2020 · 0 comments

Comments

@guruprasanthexzatech
Copy link

guruprasanthexzatech commented Feb 13, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant