Title: [Bug]: code-server (run with docker) will always overwrite PATH variable · Issue #5621 · coder/code-server · GitHub
Open Graph Title: [Bug]: code-server (run with docker) will always overwrite PATH variable · Issue #5621 · coder/code-server
X Title: [Bug]: code-server (run with docker) will always overwrite PATH variable · Issue #5621 · coder/code-server
Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Remote OS: Ubunu Remote Architecture: amd64 code-server --version: both v4.7.0 and v4.0.1 are tried Steps to Reproduce In a machine with docker i...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Remote OS: Ubunu Remote Architecture: amd64 code-server --version: both v4.7.0 and v4.0.1 are tried Steps...
X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Remote OS: Ubunu Remote Architecture: amd64 code-server --version: both v4.7.0 and v4.0.1 are tried Steps...
Opengraph URL: https://github.com/coder/code-server/issues/5621
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: code-server (run with docker) will always overwrite PATH variable","articleBody":"### Is there an existing issue for this?\n\n- [X] I have searched the existing issues\n\n### OS/Web Information\n\n- Remote OS: Ubunu\r\n- Remote Architecture: amd64\r\n- `code-server --version`: both v4.7.0 and v4.0.1 are tried\r\n\n\n### Steps to Reproduce\n\n1. In a machine with docker installed, run\r\n ```bash\r\n mkdir -p ~/.config\r\n docker run -it --name code-server -p 127.0.0.1:8080:8080 \\\r\n -v \"$HOME/.config:/home/coder/.config\" \\\r\n -v \"$PWD:/home/coder/project\" \\\r\n -u \"$(id -u):$(id -g)\" \\\r\n -e \"DOCKER_USER=$USER\" -e \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/some/path\" \\\r\n codercom/code-server:latest\r\n ```\r\n2. Login to the browser, launch terminal in vscode and print the PATH `echo $PATH`\r\n3. Always get: \r\n\n\n### Expected\n\n`/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/some/path` with some extra paths appended by code-server.\n\n### Actual\n\n`/usr/lib/code-server/lib/vscode/bin/remote-cli:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games`\n\n### Logs\n\n_No response_\n\n### Screenshot/Video\n\n_No response_\n\n### Does this issue happen in VS Code or GitHub Codespaces?\n\n- [X] I cannot reproduce this in VS Code.\n- [X] I cannot reproduce this in GitHub Codespaces.\n\n### Are you accessing code-server over HTTPS?\n\n- [X] I am using HTTPS.\n\n### Notes\n\nThough I checked I am using HTTPS, but I actually running locally without HTTPS.\r\nI checked it because it is a must and I think HTTPS has nothing to do with the issue.","author":{"url":"https://github.com/huweiATgithub","@type":"Person","name":"huweiATgithub"},"datePublished":"2022-10-05T05:07:22Z","url":"https://github.com/coder/code-server/issues/5621"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2d5e5292-d164-cfc1-d111-3c1b85cf7f1b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4E2:19AA62:2A47C16:35B22F6:6B01A71D |
| html-safe-nonce | 7ab23f2ff0100196465943ea1887080d63742878b58d412c60ba50bd196eb4a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEUyOjE5QUE2MjoyQTQ3QzE2OjM1QjIyRjY6NkIwMUE3MUQiLCJ2aXNpdG9yX2lkIjoiODQyMDAwMDA4NTI2NTQ1ODk3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37d13d8f4a03246b50c4bd83984f1755ed8f19d4d5dd4f54730fcba953eebcb2 |
| hovercard-subject-tag | issue:1397237488 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/5621/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d30f98becf4e894d0b5589055f71cbe22a0407592f83d3ed8eb4230e9e07bba3/coder/code-server/issues/5621 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d30f98becf4e894d0b5589055f71cbe22a0407592f83d3ed8eb4230e9e07bba3/coder/code-server/issues/5621 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues OS/Web Information Remote OS: Ubunu Remote Architecture: amd64 code-server --version: both v4.7.0 and v4.0.1 are tried Steps... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | huweiATgithub |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width