Visual Studio 2017 : client version 1.22 is too old

This might come in handy when building with Containers in Visual Studio 2017

I created a containerized asp.net core app and I got this exception: "Microsoft.DotNet.Docker.CommandLineClientException: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version." on the first build right out of the gate using just what the IDE gave me from the output of the app template.

This is on a Windows 10 platform with Docker For Windows:
Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Windows\system32>docker-compose version docker-compose version 1.11.2, build f963d76f docker-py version: 2.1.0 CPython version: 2.7.13 OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

You can get the details of your environment by typing docker-compose version at the command line.

I'll spare you the details of how and why, I fixed it by changing
version:'2' to version:'2.1' in the two docker-compose project files that Visual Studio adds to your solution when you enable container support:

docker-compose.ci.build.yml
docker-compose.yml

Your mileage may vary.