andreaskoch / dockerized-magento

A dockerized Magento Community Edition 1.9.x
BSD 3-Clause "New" or "Revised" License
278 stars 144 forks source link

client 1.21 version too old when trying to get docker to run #53

Closed SolsWebdesign closed 6 years ago

SolsWebdesign commented 6 years ago

Hi,

I get the following error when I try running docker-compose up: ERROR: client version 1.21 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

I have found a related issue https://github.com/docker/compose/issues/4106 saying I should add like "version: '2.1'" to the docker-compose.yml file. I've used this before in other projects (and usually have "version" above my "services") but when I open this docker-compose.yml file, I see "installer: " instead of the "services: " I usually see.

I tried adding the "version: '2'" line anyway but that gets me the following error:

"Invalid top-level property "cache". Valid top-level sections for this Compose file are: version, services, networks, volumes, and extensions starting with "x-". 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/ "

Going to the documentation provided in the link above I expected to see something about "installer" possibilities but the documentation does not mention it.

I'm a bit stuck now. I'd love to get this up and running. Where should the version go and what type of docker-compose.yml is this?

I'm on Windows 10 professional, running docker version 18.03.1-ce and API version 1.37. I'm fairly new to Docker so any help with this issue is appreciated.

SolsWebdesign commented 6 years ago

Okay, I'm in luck, it seems that someone else already had this issue :-) See Pull request "Update docker-compose.yml syntax to version 2"