Describe the bug
ddev ssh
Traceback (most recent call last):
File "docker-compose", line 6, in
File "compose\cli\main.py", line 72, in main
File "compose\cli\main.py", line 128, in perform_command
File "compose\cli\main.py", line 491, in exec_command
File "compose\cli\main.py", line 1469, in call_docker
File "subprocess.py", line 172, in call
File "subprocess.py", line 394, in __init__
File "subprocess.py", line 644, in _execute_child
TypeError: environment can only contain strings
[11544] Failed to execute script docker-compose
To Reproduce
Trouble is, ddev ssh still works for some projects.
Version and configuration information (please complete the following information):
Additional context
APIVersion: v1.12.1
name: esb
type: php
docroot: public
php_version: "7.2"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: "10.2"
nfs_mount_enabled: false
provider: default
use_dns_when_possible: true
timezone: ""
the issue is not related to ddev directly but to docker-compose version 1.25.2 (which is shipped together with docker 2.2.0.0)
related issue (with a working workaround included) of the docker/compose repository: https://github.com/docker/compose/issues/7169
the binary I've replaced my docker-compose with: https://github.com/docker/compose/releases/tag/1.24.1
Suggested workaround worked, thanks, closing issue
Let's keep this open until everything about Docker 2.2.0.0 is resolved
This seems to be a problem ONLY if a .env file is present, true? I tested and didn't have trouble, and https://github.com/docker/compose/issues/7169 seems to indicate that situation.
yes, I also ran tests with new projects which all succeeded since I had no .env file.
only projects with a .env file failed.
This is fixed in next version of docker, so I'm going to go ahead and close this one since there's nothing we can do about it.
Most helpful comment
the issue is not related to ddev directly but to docker-compose version 1.25.2 (which is shipped together with docker 2.2.0.0)
related issue (with a working workaround included) of the docker/compose repository: https://github.com/docker/compose/issues/7169
the binary I've replaced my docker-compose with: https://github.com/docker/compose/releases/tag/1.24.1