The Docker REST API supports a TTY parameter on /service/create, but the Python API does not. See [here](https://docs.docker.com/engine/api/v1.29/#operation/ServiceCreate). This was implemented in Moby [here](https://github.com/moby/moby/pull/28076).