Title: PowerShell in Docker container does not map container drive mounts at start-up · Issue #7212 · PowerShell/PowerShell · GitHub
Open Graph Title: PowerShell in Docker container does not map container drive mounts at start-up · Issue #7212 · PowerShell/PowerShell
X Title: PowerShell in Docker container does not map container drive mounts at start-up · Issue #7212 · PowerShell/PowerShell
Description: Steps to reproduce "'$('-' * 100)'", 'dir V:\', "'$('-' * 100)'", 'dir FileSystem::V:\', "'$('-' * 100)'", 'New-PSDrive V FileSystem V:\', 'dir V:\' | docker run -i --rm -v C:\Host\Path:V: microsoft/powershell pwsh -Command - Expected be...
Open Graph Description: Steps to reproduce "'$('-' * 100)'", 'dir V:\', "'$('-' * 100)'", 'dir FileSystem::V:\', "'$('-' * 100)'", 'New-PSDrive V FileSystem V:\', 'dir V:\' | docker run -i --rm -v C:\Host\Path:V: microsof...
X Description: Steps to reproduce "'$('-' * 100)'", 'dir V:\', "'$('-' * 100)'", 'dir FileSystem::V:\', "'$('-' * 100)'&quo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShell in Docker container does not map container drive mounts at start-up","articleBody":"Steps to reproduce\r\n------------------\r\n\r\n```powershell\r\n\"'$('-' * 100)'\",\r\n'dir V:\\',\r\n\"'$('-' * 100)'\",\r\n'dir FileSystem::V:\\',\r\n\"'$('-' * 100)'\",\r\n'New-PSDrive V FileSystem V:\\',\r\n'dir V:\\' | docker run -i --rm -v C:\\Host\\Path:V: microsoft/powershell pwsh -Command -\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n`V` drive should be mapped at PowerShell start-up.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nAttempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.\r\n----------------------------------------------------------------------------------------------------\r\ndir : Cannot find drive. A drive with the name 'V' does not exist.\r\nAt line:1 char:1\r\n+ dir V:\\\r\n+ ~~~~~~~\r\n+ CategoryInfo : ObjectNotFound: (V:String) [Get-ChildItem], DriveNotFoundException\r\n+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand\r\n\r\n----------------------------------------------------------------------------------------------------\r\n\r\n\r\n Directory: V:\\\r\n\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a---- 6/30/2018 5:37 AM 0 Host file.txt\r\n\r\n\r\n----------------------------------------------------------------------------------------------------\r\n\r\nName Used (GB) Free (GB) Provider Root\r\n---- --------- --------- -------- ----\r\nV 156.80 1705.68 FileSystem V:\\\r\n\r\n\r\n\r\n\r\n Directory: V:\\\r\n\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a---- 6/30/2018 5:37 AM 0 Host file.txt\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```cmd\r\n>ver\r\n\r\nMicrosoft Windows [Version 10.0.17134.112]\r\n\r\n>docker --version\r\nDocker version 18.03.1-ce, build 9ee9f40\r\n```\r\n","author":{"url":"https://github.com/PetSerAl","@type":"Person","name":"PetSerAl"},"datePublished":"2018-06-30T03:06:15Z","url":"https://github.com/PowerShell/PowerShell/issues/7212"}
| 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:f6f45138-5628-852a-390d-659267cc985f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D33C:1B31E5:1DC4F8:29589B:6AFD070F |
| html-safe-nonce | 8e4f899802afa96fcc183332e6e0d7bfc26ff3d91b9cd29c1ba5851ef2031095 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzNDOjFCMzFFNToxREM0Rjg6Mjk1ODlCOjZBRkQwNzBGIiwidmlzaXRvcl9pZCI6IjI2NDk1Mzc5Njc3NTU2OTE3OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f69fb79c7469a15e05d44d306d54b02b6479ff24dc2cc441e85e298abb6fb708 |
| hovercard-subject-tag | issue:337181445 |
| 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/PowerShell/PowerShell/7212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca8d424e588f748cc8cd6184ca3492275a153fdabb1b48957ab5c78cba9601a5/PowerShell/PowerShell/issues/7212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca8d424e588f748cc8cd6184ca3492275a153fdabb1b48957ab5c78cba9601a5/PowerShell/PowerShell/issues/7212 |
| og:image:alt | Steps to reproduce "'$('-' * 100)'", 'dir V:\', "'$('-' * 100)'", 'dir FileSystem::V:\', "'$('-' * 100)'", 'New-PSDrive V FileSystem V:\', 'dir V:\' | docker run -i --rm -v C:\Host\Path:V: microsof... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PetSerAl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8fd5a24ae29aa78df114eaaf1f9a839e8c3b7c0d27549e4f54678bb7cf3166d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | dd0990b833f227378ab84f1d9519db1a04660550 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width