{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/compose/issues/6149","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/6149/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/6149/comments","events_url":"https://api.github.com/repos/docker/compose/issues/6149/events","html_url":"https://github.com/docker/compose/issues/6149","id":352337194,"node_id":"MDU6SXNzdWUzNTIzMzcxOTQ=","number":6149,"title":"Can't use \"docker-compose as a container\" with docker-machine","user":{"login":"deivid-rodriguez","id":2887858,"node_id":"MDQ6VXNlcjI4ODc4NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/2887858?v=4","gravatar_id":"","url":"https://api.github.com/users/deivid-rodriguez","html_url":"https://github.com/deivid-rodriguez","followers_url":"https://api.github.com/users/deivid-rodriguez/followers","following_url":"https://api.github.com/users/deivid-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/deivid-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/deivid-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deivid-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/deivid-rodriguez/orgs","repos_url":"https://api.github.com/users/deivid-rodriguez/repos","events_url":"https://api.github.com/users/deivid-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/deivid-rodriguez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T00:01:04Z","updated_at":"2018-08-21T00:01:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\nWelcome to the docker-compose issue tracker! Before creating an issue, please heed the following:\r\n\r\n1. This tracker should only be used to report bugs and request features / enhancements to docker-compose\r\n    - For questions and general support, use https://forums.docker.com\r\n    - For documentation issues, use https://github.com/docker/docker.github.io\r\n    - For issues with the `docker stack` commands and the version 3 of the Compose file, use\r\n      https://github.com/docker/cli\r\n2. Use the search function before creating a new issue. Duplicates will be closed and directed to\r\n   the original discussion.\r\n3. When making a bug report, make sure you provide all required information. The easier it is for\r\n   maintainers to reproduce, the faster it'll be fixed.\r\n-->\r\n\r\n## Description of the issue\r\n\r\nIf I follow the \"Install as a container instructions\" in https://docs.docker.com/compose/install/#install-compose, and then run\r\n\r\n```\r\ndocker-compose $(docker-machine config my_machine) ps\r\n```\r\nIt fails with\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 38, in project_from_options\r\n  File \"compose/cli/docker_client.py\", line 84, in tls_config_from_options\r\n  File \"site-packages/docker/tls.py\", line 81, in __init__\r\ndocker.errors.TLSParameterError: Path to a certificate and key files must be provided through the client_config param. TLS configurations should map the Docker CLI client configurations. See https://docs.docker.com/engine/articles/https/ for API details.\r\n[6] Failed to execute script docker-compose\r\n```\r\n\r\nIf I install the \"standard way\", it works properly.\r\n\r\n## Context information (for bug reports)\r\n\r\n```\r\ndocker-compose version 1.22.0, build f46880fe\r\ndocker-py version: 3.4.1\r\nCPython version: 3.6.6\r\nOpenSSL version: OpenSSL 1.1.0f  25 May 2017\r\n```\r\n\r\n```\r\nClient:\r\n Version:           18.06.0-ce\r\n API version:       1.38\r\n Go version:        go1.10.3\r\n Git commit:        0ffa825\r\n Built:             Wed Jul 18 19:09:54 2018\r\n OS/Arch:           linux/amd64\r\n Experimental:      false\r\n\r\nServer:\r\n Engine:\r\n  Version:          18.06.0-ce\r\n  API version:      1.38 (minimum version 1.12)\r\n  Go version:       go1.10.3\r\n  Git commit:       0ffa825\r\n  Built:            Wed Jul 18 19:07:56 2018\r\n  OS/Arch:          linux/amd64\r\n  Experimental:     false\r\n```\r\n\r\n```\r\n$ docker-compose config\r\nERROR: \r\n        Can't find a suitable configuration file in this directory or any\r\n        parent. Are you in the right directory?\r\n\r\n        Supported filenames: docker-compose.yml, docker-compose.yaml\r\n        \r\n$ ls docker-compose.yml\r\n-rw-r--r-- 1 deivid deivid 849 ago 19 11:35 docker-compose.yml\r\n```\r\n\r\n\r\n## Steps to reproduce the issue\r\n\r\n1. Install docker-machine.\r\n2. Create a new machine.\r\n3. Run `docker-compose $(docker-machine config my_new_machine) ps`.\r\n\r\n### Observed result\r\n\r\nCrash.\r\n\r\n### Expected result\r\n\r\nSame as with the regular installation method.\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 38, in project_from_options\r\n  File \"compose/cli/docker_client.py\", line 84, in tls_config_from_options\r\n  File \"site-packages/docker/tls.py\", line 81, in __init__\r\ndocker.errors.TLSParameterError: Path to a certificate and key files must be provided through the client_config param. TLS configurations should map the Docker CLI client configurations. See https://docs.docker.com/engine/articles/https/ for API details.\r\n```\r\n\r\n## Additional information\r\n\r\n```console\r\n$ uname -a\r\nLinux pantani 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n$ cat /etc/lsb-release \r\nDISTRIB_ID=LinuxMint\r\nDISTRIB_RELEASE=19\r\nDISTRIB_CODENAME=tara\r\nDISTRIB_DESCRIPTION=\"Linux Mint 19 Tara\"\r\nOS version / distribution, `docker-compose` install method, etc.\r\n```"}}
{"actor":{"display_login":"deivid-rodriguez"}}