git/list[1] front-page[2] threads[3] people[4] search[5] about
 

$PWD expanding to incorrect value Podman run command

From
Ddev@dev.maltese.cc <dev@dev.maltese.cc>
Date
May 9, 2024, 14:06 UTC
Message-ID
<21209940.11022921.1715263583414@email.ionos.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) Installed podman and executed: "$ podman run -p 8081:80 -v $PWD:/usr/share/nginx/html nginx"

What did you expect to happen? (Expected behavior) Expected the nginx image to run and map the current directory to the '/usr/share/nginx/html' directory.

What happened instead? (Actual behavior) Received the error "Error: invalid container path "\\Program Files\\Git\\usr\\share\\nginx\\html", must be an absolute path".

What's different between what you expected and what actually happened? I expected the docker $PWD (or ${PWD} or $(pwd) or $HOME) to expand to the actual working directory, but it seems to expand to the directory of the gitbash executable.

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.41.0.windows.1 cpu: x86_64 built from commit: ff94e79c4724635915dbb3d4ba38f6bb91528260 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 19045 compiler info: gnuc: 13.1 libc info: no libc information available $SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe

[Enabled Hooks] not run from a git repository - no hooks to show

Next: brian m. carlson
Message 1 of 2 in “$PWD expanding to incorrect value Podman run command”
  1. dev@dev.maltese.ccMay 9, 2024
  2. brian m. carlsonMay 9, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.