Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion content/get-started/workshop/06_bind_mounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ filesystem you can share with containers. For details about accessing the settin
bind mount.

{{< tabs >}}
{{< tab name="Mac / Linux / PowerShell" >}}
{{< tab name="Mac / Linux" >}}

```console
$ docker run -it --mount type=bind,src="$(pwd)",target=/src ubuntu bash
Expand All @@ -79,6 +79,13 @@ filesystem you can share with containers. For details about accessing the settin
$ docker run -it --mount type=bind,src="/$(pwd)",target=/src ubuntu bash
```

{{< /tab >}}
{{< tab name="PowerShell" >}}

```console
$ docker run -it --mount "type=bind,src=$($pwd),target=/src" ubuntu bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would interpolating the uppercase ${PWD} variable work as a cross-platform alternative to $(pwd)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker run -it --mount type=bind,src="${PWD}",target=/src ubuntu bash and docker run -it --mount "type=bind,src=${PWD},target=/src" ubuntu bash both also work for me in PowerShell.

I'm not able to reliably reproduce the original issue, so saying it works on my machine doesn't give me much confidence.

```

{{< /tab >}}
{{< /tabs >}}

Expand Down
Loading