client version 1.18 is too old. Minimum supported API version is 1.24
You don’t provide much context for that error message. It commonly occurs when the client is older than the engine it’s trying to talk to. In that case, you’re best move may be to upgrade the client to a more recent version. It may also happen with a versioned compose file, in which case you may want to have a look at this article: https://mehraban.com.au/2017/02/15/are-you-facing-docker-version-error/
In general, you can check on the API versions supported by running the
$ docker version
command to see if, indeed, you have an older client and/or server.