mirror of
https://github.com/clearlinux/docs.git
synced 2026-08-19 05:37:17 +00:00
Quoted all instances of pwd and generated docs
This commit is contained in:
@@ -28,8 +28,8 @@ Then build and run the docker image.
|
||||
|
||||
For many single file projects, it may not be convenient to write a `Dockerfile` for your project. In such cases, you can run a python script by using the python docker image directly.
|
||||
|
||||
docker run -it --rm --name my-running-script -v $(pwd):/usr/src/myapp -w /usr/src/myapp python:3 python your-daemon-or-script.py
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp python:3 python your-daemon-or-script.py
|
||||
|
||||
or (again, if you need to use Python 2):
|
||||
|
||||
docker run -it --rm --name my-running-script -v $(pwd):/usr/src/myapp -w /usr/src/myapp python:2 python your-daemon-or-script.py
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp python:2 python your-daemon-or-script.py
|
||||
|
||||
+2
-2
@@ -28,11 +28,11 @@ Then build and run the docker image.
|
||||
|
||||
For many single file projects, it may not be convenient to write a `Dockerfile` for your project. In such cases, you can run a python script by using the python docker image directly.
|
||||
|
||||
docker run -it --rm --name my-running-script -v $(pwd):/usr/src/myapp -w /usr/src/myapp python:3 python your-daemon-or-script.py
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp python:3 python your-daemon-or-script.py
|
||||
|
||||
or (again, if you need to use Python 2):
|
||||
|
||||
docker run -it --rm --name my-running-script -v $(pwd):/usr/src/myapp -w /usr/src/myapp python:2 python your-daemon-or-script.py
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp python:2 python your-daemon-or-script.py
|
||||
|
||||
# User Feedback
|
||||
|
||||
|
||||
Reference in New Issue
Block a user