Skip to content

Commit f58f80d

Browse files
authored
Update docker/README.md (#1375)
1 parent e0a6aa0 commit f58f80d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EOF
2323
# compile with docker image
2424
docker run \
2525
--rm \
26-
-v $(pwd):/src \
26+
-v "$(pwd):$(pwd)" \
2727
-u $(id -u):$(id -g) \
2828
emscripten/emsdk \
2929
emcc helloworld.cpp -o helloworld.js
@@ -38,7 +38,7 @@ Teardown of compilation command:
3838
|---|---|
3939
|`docker run`| A standard command to run a command in a container|
4040
|`--rm`|remove a container after execution (optimization)|
41-
|`-v $(pwd):$(pwd)`|Mounting current folder from the host system into mirrored path on the container<br>TIP: This helps to investigate possible problem as we preserve exactly the same paths like in host. In such case modern editors (like Sublime, Atom, VS Code) let us to CTRL+Click on a problematic file |
41+
|`-v "$(pwd):$(pwd)"`|Mounting current folder from the host system into mirrored path on the container<br>TIP: This helps to investigate possible problem as we preserve exactly the same paths like in host. In such case modern editors (like Sublime, Atom, VS Code) let us to CTRL+Click on a problematic file |
4242
|`-u $(id -u):$(id -g)`| Run the container as a non-root user with the same UID and GID as local user. Hence all files produced by this are accessible to non-root users|
4343
|`emscripten/emsdk`|Get the latest tag of this container|
4444
|`emcc helloworld.cpp -o helloworld.js`|Execute `emcc` command with following arguments inside container, effectively compile our source code|

0 commit comments

Comments
 (0)