{"action":"closed","issue":{"url":"https://api.github.com/repos/laradock/laradock/issues/1381","repository_url":"https://api.github.com/repos/laradock/laradock","labels_url":"https://api.github.com/repos/laradock/laradock/issues/1381/labels{/name}","comments_url":"https://api.github.com/repos/laradock/laradock/issues/1381/comments","events_url":"https://api.github.com/repos/laradock/laradock/issues/1381/events","html_url":"https://github.com/laradock/laradock/issues/1381","id":297719551,"number":1381,"title":"Yarn not in path on Laradock worskpace when using it in inline docker exec command","user":{"login":"Okipa","id":5328934,"avatar_url":"https://avatars0.githubusercontent.com/u/5328934?v=4","gravatar_id":"","url":"https://api.github.com/users/Okipa","html_url":"https://github.com/Okipa","followers_url":"https://api.github.com/users/Okipa/followers","following_url":"https://api.github.com/users/Okipa/following{/other_user}","gists_url":"https://api.github.com/users/Okipa/gists{/gist_id}","starred_url":"https://api.github.com/users/Okipa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Okipa/subscriptions","organizations_url":"https://api.github.com/users/Okipa/orgs","repos_url":"https://api.github.com/users/Okipa/repos","events_url":"https://api.github.com/users/Okipa/events{/privacy}","received_events_url":"https://api.github.com/users/Okipa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-16T09:11:41Z","updated_at":"2018-02-19T10:24:22Z","closed_at":"2018-02-19T10:24:22Z","author_association":"NONE","body":"### Info:\r\n- Docker version (`$ docker --version`): 17.12.0-ce, build c97c6d6\r\n- Laradock commit (`$ git rev-parse HEAD`): acbe7160d9680dd77b801b8df12300da6ab08d45\r\n- System info (Mac, PC, Linux): MacOS\r\n- System info disto/version: High Sierra 10.13.3\r\n\r\n### Issue:\r\nI have a problem using Laradock and Yarn with an inline `docker exec` command from \"outside\" the `workspace` container.\r\n\r\nWhen I use it from inside the `workspace` container, everything is working as expected :\r\n\r\n    docker exec -it --user=laradock laradock_workspace_1 bash\r\n    yarn -v\r\n    1.3.2\r\n\r\nWhen I try to use it from an inline command with `docker exec`, here is what happens :\r\n\r\n    docker exec -it --user=laradock laradock_workspace_1 yarn -v\r\n    OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused \"exec: \\\"yarn\\\": executable file not found in $PATH\": unknown\r\n\r\n_____\r\n\r\n### Expected behavior:\r\nThe `docker exec` command should return `1.3.2` too.\r\n_____\r\n\r\n### Reproduce:\r\nJust execute `docker exec -it --user=laradock laradock_workspace_1 yarn -v`.\r\n_____\r\n\r\n### Relevant Code:\r\nMy Laradock .env has the following variable declared :\r\n```\r\n[...]\r\nWORKSPACE_INSTALL_NODE=true\r\nWORKSPACE_INSTALL_YARN=true\r\n[...]\r\nWORKSPACE_INSTALL_PYTHON=true\r\n[...]\r\nWORKSPACE_NODE_VERSION=stable\r\nWORKSPACE_YARN_VERSION=latest\r\n[...]\r\n```\r\n\r\nHere is the link toward the same Stack Overflow issue : https://stackoverflow.com/questions/48809046/yarn-not-in-path-on-laradock-worskpace-when-using-it-in-inline-docker-exec-comma"}}
{"actor":{"display_login":"Okipa"}}