{"action":"created","issue":{"url":"https://api.github.com/repos/rocker-org/rocker/issues/288","repository_url":"https://api.github.com/repos/rocker-org/rocker","labels_url":"https://api.github.com/repos/rocker-org/rocker/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/rocker-org/rocker/issues/288/comments","events_url":"https://api.github.com/repos/rocker-org/rocker/issues/288/events","html_url":"https://github.com/rocker-org/rocker/issues/288","id":323704242,"number":288,"title":"Not able to access installed rust","user":{"login":"sumandoc","id":8075886,"avatar_url":"https://avatars1.githubusercontent.com/u/8075886?v=4","gravatar_id":"","url":"https://api.github.com/users/sumandoc","html_url":"https://github.com/sumandoc","followers_url":"https://api.github.com/users/sumandoc/followers","following_url":"https://api.github.com/users/sumandoc/following{/other_user}","gists_url":"https://api.github.com/users/sumandoc/gists{/gist_id}","starred_url":"https://api.github.com/users/sumandoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumandoc/subscriptions","organizations_url":"https://api.github.com/users/sumandoc/orgs","repos_url":"https://api.github.com/users/sumandoc/repos","events_url":"https://api.github.com/users/sumandoc/events{/privacy}","received_events_url":"https://api.github.com/users/sumandoc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-16T16:52:32Z","updated_at":"2018-05-18T16:49:23Z","closed_at":"2018-05-18T16:49:23Z","author_association":"NONE","body":"Hi there, \r\n\r\nI am trying to build a docker image to use as a development environment for building R packages that enables to include [rust](https://www.rust-lang.org/en-US/) code. This is [the image](https://github.com/sumandoc/P6RStudio) with its [dockerfile](https://github.com/sumandoc/P6RStudio/blob/master/Dockerfile).\r\n\r\nI successfully install the rust in this image with this command:\r\n```bash\r\ncurl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y\r\n```\r\nwhich installs binary to `/root/.cargo/bin`.\r\n\r\nI try to append this folder to $PATH as:\r\n\r\n```\r\nENV PATH $PATH:/root/.cargo/bin\r\n```\r\n\r\nEverything goes fine but still I am unable to access rust from terminal.\r\nI thought it could be due to permission issues. So consulted [this issue](https://github.com/rocker-org/rocker/issues/246) but still I could not solve it.\r\n\r\nWhat is the way around for this?"},"comment":{"url":"https://api.github.com/repos/rocker-org/rocker/issues/comments/390266650","html_url":"https://github.com/rocker-org/rocker/issues/288#issuecomment-390266650","issue_url":"https://api.github.com/repos/rocker-org/rocker/issues/288","id":390266650,"user":{"login":"cboettig","id":222586,"avatar_url":"https://avatars3.githubusercontent.com/u/222586?v=4","gravatar_id":"","url":"https://api.github.com/users/cboettig","html_url":"https://github.com/cboettig","followers_url":"https://api.github.com/users/cboettig/followers","following_url":"https://api.github.com/users/cboettig/following{/other_user}","gists_url":"https://api.github.com/users/cboettig/gists{/gist_id}","starred_url":"https://api.github.com/users/cboettig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cboettig/subscriptions","organizations_url":"https://api.github.com/users/cboettig/orgs","repos_url":"https://api.github.com/users/cboettig/repos","events_url":"https://api.github.com/users/cboettig/events{/privacy}","received_events_url":"https://api.github.com/users/cboettig/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T16:49:23Z","updated_at":"2018-05-18T16:49:23Z","author_association":"MEMBER","body":"@sumandoc But in your minimal example you have now stopped adding `/root/.cargo/bin` to your `$PATH` .  (Also in your minimal example you seem to be attempting to `chown` files in `/root` after you moved them somewhere else).  Put your move command at the end and then:\r\n\r\n```\r\ndocker build -t test\r\ndocker run --rm -ti -u rstudio test which rustc\r\n```\r\nseems to work fine.  Looks like you probably want to do\r\n\r\n```\r\ndocker run --rm -ti -u rstudio test rustup install stable\r\n```\r\n\r\nto get some default toolchain built. Anyway, I suggest going for stackoverflow since these are general linux, rust, or docker questions and you'll get better support there.  These issue threads are really for bug reports or problems particular to rocker images.  "}}
{"actor":{"display_login":"cboettig"}}