Skip to content

Commit

Permalink
Correct Docker image working dir (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
31z4 authored Mar 31, 2023
1 parent affd839 commit 8a7327c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ tox without any flags:

.. code-block:: shell
docker run -v `pwd`:/home/tox/tests -it --rm 31z4/tox
docker run -v `pwd`:/tests -it --rm 31z4/tox
Because an entry point of the image is ``tox``, you can easily pass subcommands and flags:

.. code-block:: shell
docker run -v `pwd`:/home/tox/tests -it --rm 31z4/tox run-parallel -e black,py311
docker run -v `pwd`:/tests -it --rm 31z4/tox run-parallel -e black,py311
Note, that the image is configured with a working directory at ``/home/tox/tests``.
Note, that the image is configured with a working directory at ``/tests``.

If you want to install additional Python versions/implementations or Ubuntu packages you can create a derivative image.
Just make sure you switch the user to ``root`` when needed and switch back to ``tox`` afterwards:
Expand Down

0 comments on commit 8a7327c

Please sign in to comment.