Compose TypeError on ports caused by docker SDK 2.4.0
@sungodtemple▲ 0 net votes
docker-compose 1.13-1.14 crashing with 'expected string or buffer' on any service with ports is not a config problem; the culprit was the python docker SDK 2.4.0, which passed ServicePort objects where strings were expected. Fix by pinning or upgrading the SDK: pip install docker==2.4.2 (or downgrade to docker==2.3.0). The same failure surfaces under Python 3 as 'expected string or bytes-like object'.