blueimp / wdio

Docker setup for WebdriverIO with automatic screenshots, image diffing and screen recording support for containerized versions of Chrome and Firefox on Linux, mobile versions of Chrome and Firefox on Android as well as Safari on iOS, Safari on macOS and Edge on Windows.
https://hub.docker.com/r/blueimp/wdio
MIT License
296 stars 51 forks source link

Version in "./docker-compose.yml" is unsupported. #1

Closed rostgoat closed 5 years ago

rostgoat commented 5 years ago

cloned repo, ran the chrome command docker-compose run --rm wdio chrome and got this message in terminal:

docker-compose run --rm wdio chrome 
/home/matthew/.local/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
ERROR: Version in "./docker-compose.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/

is there an instruction I am missing here?

Docker version 18.06.1-ce Node 8.10.0 npm 6.9.0 Ubuntu 18.04.1 LTS

blueimp commented 5 years ago

Looks like you have an older docker-compose version that doesn't support yet the docker-compose file version 3.7.

You can safely change the version at the top of docker-compose.yml to 2.2, since this version also supports all the directives used in the file:

version: '2.2'
rostgoat commented 5 years ago

cool thanks that works

mn-48 commented 4 years ago

Looks like you have an older docker-compose version that doesn't support yet the docker-compose file version 3.7.

You can safely change the version at the top of docker-compose.yml to 2.2, since this version also supports all the directives used in the file:

version: '2.2'

Your ans is great.