{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/6336","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/6336/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/6336/comments","events_url":"https://api.github.com/repos/docker/compose/issues/6336/events","html_url":"https://github.com/docker/compose/issues/6336","id":379520135,"node_id":"MDU6SXNzdWUzNzk1MjAxMzU=","number":6336,"title":"Docker Compose doesn't work when SSH connection used to remote Docker Engine","user":{"login":"raesene","id":68317,"node_id":"MDQ6VXNlcjY4MzE3","avatar_url":"https://avatars1.githubusercontent.com/u/68317?v=4","gravatar_id":"","url":"https://api.github.com/users/raesene","html_url":"https://github.com/raesene","followers_url":"https://api.github.com/users/raesene/followers","following_url":"https://api.github.com/users/raesene/following{/other_user}","gists_url":"https://api.github.com/users/raesene/gists{/gist_id}","starred_url":"https://api.github.com/users/raesene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raesene/subscriptions","organizations_url":"https://api.github.com/users/raesene/orgs","repos_url":"https://api.github.com/users/raesene/repos","events_url":"https://api.github.com/users/raesene/events{/privacy}","received_events_url":"https://api.github.com/users/raesene/received_events","type":"User","site_admin":false},"labels":[{"id":255290150,"node_id":"MDU6TGFiZWwyNTUyOTAxNTA=","url":"https://api.github.com/repos/docker/compose/labels/area/cli","name":"area/cli","color":"c7def8","default":false},{"id":441469436,"node_id":"MDU6TGFiZWw0NDE0Njk0MzY=","url":"https://api.github.com/repos/docker/compose/labels/docker-py","name":"docker-py","color":"8d66db","default":false},{"id":153640415,"node_id":"MDU6TGFiZWwxNTM2NDA0MTU=","url":"https://api.github.com/repos/docker/compose/labels/kind/feature","name":"kind/feature","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/compose/milestones/41","html_url":"https://github.com/docker/compose/milestone/41","labels_url":"https://api.github.com/repos/docker/compose/milestones/41/labels","id":3767007,"node_id":"MDk6TWlsZXN0b25lMzc2NzAwNw==","number":41,"title":"1.24.0","description":null,"creator":{"login":"shin-","id":1086876,"node_id":"MDQ6VXNlcjEwODY4NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1086876?v=4","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":42,"state":"closed","created_at":"2018-10-24T23:09:59Z","updated_at":"2019-03-28T18:40:00Z","due_on":null,"closed_at":"2019-03-28T18:40:00Z"},"comments":7,"created_at":"2018-11-11T12:55:09Z","updated_at":"2019-09-14T00:54:17Z","closed_at":"2018-12-01T01:31:32Z","author_association":"NONE","body":"## Description of the issue\r\n\r\nJust trying out the new SSH connection introduced in Docker 18.09 and I noticed an error when attempting to do `docker-compose up` whilst targeting a remote Docker Engine instance.\r\n\r\nErrors message below appears to indicate that Compose isn't aware of the SSH protocol for this purpose\r\n```\r\ndocker.errors.DockerException: Invalid bind address protocol: ssh://xfoxy.secinternal.local\r\n[486] Failed to execute script docker-compose\r\n```\r\n\r\n## Context information (for bug reports)\r\n\r\n**Output of `docker-compose version`**\r\n```\r\ndocker-compose version 1.23.1, build b02f1306\r\ndocker-py version: 3.5.0\r\nCPython version: 3.6.7\r\nOpenSSL version: OpenSSL 1.1.0f  25 May 2017\r\n```\r\n\r\n**Output of `docker version`**\r\n```\r\nClient:\r\n Version:           18.09.0\r\n API version:       1.39\r\n Go version:        go1.10.4\r\n Git commit:        4d60db4\r\n Built:             Wed Nov  7 00:49:01 2018\r\n OS/Arch:           linux/amd64\r\n Experimental:      false\r\n\r\nServer: Docker Engine - Community\r\n Engine:\r\n  Version:          18.09.0\r\n  API version:      1.39 (minimum version 1.12)\r\n  Go version:       go1.10.4\r\n  Git commit:       4d60db4\r\n  Built:            Wed Nov  7 00:16:44 2018\r\n  OS/Arch:          linux/amd64\r\n  Experimental:     false\r\n```\r\n\r\n**Output of `docker-compose config`**\r\n(Make sure to add the relevant `-f` and other flags)\r\n```\r\nnetworks:\r\n  testnet: {}\r\nservices:\r\n  dradis:\r\n    image: raesene/dradis\r\n    networks:\r\n      testnet: null\r\n    ports:\r\n    - 3000/tcp\r\n    volumes:\r\n    - data:/data:rw\r\n  sectest:\r\n    image: raesene/sectest\r\n    networks:\r\n      testnet: null\r\n    ports:\r\n    - 22/tcp\r\n    volumes:\r\n    - data:/data:rw\r\nversion: '3.0'\r\nvolumes:\r\n  data: {}\r\n```\r\n\r\n\r\n## Steps to reproduce the issue\r\n\r\n1. Configure a Docker client (18.09) to connect to a remote Docker engine instance via SSH\r\n2. Run `docker-compose up` in a directory with a docker-compose.yml file.\r\n3. Error occors.\r\n\r\n### Observed result\r\n\r\nError occurs\r\n\r\n### Expected result\r\n\r\nDocker compose contacts the remote docker engine instance to create the containers.\r\n\r\n### Stacktrace / full error message\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"bin/docker-compose\", line 6, in <module>\r\n  File \"compose/cli/main.py\", line 71, in main\r\n  File \"compose/cli/main.py\", line 124, in perform_command\r\n  File \"compose/cli/command.py\", line 42, in project_from_options\r\n  File \"compose/cli/command.py\", line 123, in get_project\r\n  File \"compose/cli/command.py\", line 94, in get_client\r\n  File \"compose/cli/docker_client.py\", line 127, in docker_client\r\n  File \"site-packages/docker/api/client.py\", line 118, in __init__\r\n  File \"site-packages/docker/utils/utils.py\", line 256, in parse_host\r\ndocker.errors.DockerException: Invalid bind address protocol: ssh://xfoxy.secinternal.local\r\n[486] Failed to execute script docker-compose\r\n```\r\n\r\n## Additional information\r\n\r\nClient is WSL (Ubuntu 18.04) Server is Ubuntu 18.04 running Docker 18.09.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/531431514","html_url":"https://github.com/docker/compose/issues/6336#issuecomment-531431514","issue_url":"https://api.github.com/repos/docker/compose/issues/6336","id":531431514,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTQzMTUxNA==","user":{"login":"cuttingd","id":627774,"node_id":"MDQ6VXNlcjYyNzc3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/627774?v=4","gravatar_id":"","url":"https://api.github.com/users/cuttingd","html_url":"https://github.com/cuttingd","followers_url":"https://api.github.com/users/cuttingd/followers","following_url":"https://api.github.com/users/cuttingd/following{/other_user}","gists_url":"https://api.github.com/users/cuttingd/gists{/gist_id}","starred_url":"https://api.github.com/users/cuttingd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuttingd/subscriptions","organizations_url":"https://api.github.com/users/cuttingd/orgs","repos_url":"https://api.github.com/users/cuttingd/repos","events_url":"https://api.github.com/users/cuttingd/events{/privacy}","received_events_url":"https://api.github.com/users/cuttingd/received_events","type":"User","site_admin":false},"created_at":"2019-09-14T00:54:17Z","updated_at":"2019-09-14T00:54:17Z","author_association":"NONE","body":"Any news on this?  I'm running this: docker-compose -H ssh://user@host down and I get the following:\r\n\r\nTraceback (most recent call last):\r\n  File \"docker-compose\", line 6, in <module>\r\n  File \"compose\\cli\\main.py\", line 71, in main\r\n  File \"compose\\cli\\main.py\", line 124, in perform_command\r\n  File \"compose\\cli\\command.py\", line 42, in project_from_options\r\n  File \"compose\\cli\\command.py\", line 123, in get_project\r\n  File \"compose\\cli\\command.py\", line 94, in get_client\r\n  File \"compose\\cli\\docker_client.py\", line 127, in docker_client\r\n  File \"site-packages\\docker\\api\\client.py\", line 166, in __init__\r\n  File \"site-packages\\docker\\transport\\sshconn.py\", line 84, in __init__\r\n  File \"site-packages\\docker\\transport\\sshconn.py\", line 94, in _connect\r\n  File \"site-packages\\paramiko\\client.py\", line 437, in connect\r\n  File \"site-packages\\paramiko\\client.py\", line 676, in _auth\r\n  File \"site-packages\\paramiko\\agent.py\", line 379, in __init__\r\n  File \"site-packages\\paramiko\\agent.py\", line 65, in _connect\r\n  File \"site-packages\\paramiko\\agent.py\", line 83, in _send_message\r\n  File \"site-packages\\paramiko\\agent.py\", line 91, in _read_all\r\nparamiko.ssh_exception.SSHException: lost ssh-agent\r\n[16740] Failed to execute script docker-compose"}}
{"actor":{"display_login":"cuttingd"}}