Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4cddd11

Browse files
authored
Update README.md
I found out you can use the %cd% variable in windows from running through the docker tutorial. https://stackoverflow.com/a/46878055/238350
1 parent 2cde29e commit 4cddd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ docker run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp \
3434
adamculp/php-code-quality:latest <followup-command-with-arguments>
3535
```
3636

37-
WINDOWS USERS: The use of "$PWD" for present working directory will not work as expected, instead use the full path. Such as "//c/Users/adamculp/project".
37+
WINDOWS USERS: The use of "$PWD" for present working directory will not work as expected, instead use "%cd%" or the full path. Such as "//c/Users/adamculp/project".
3838

3939
In the example above, Docker runs an interactive terminal to be removed when all is completed, and mounts the current host directory ($PWD) inside the container, sets this as the current working directory, and then loads the image `adamculp/php-code-quality` or `ghcr.io/adamculp/php-code-quality` as the case may be.
4040

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /