Skip to content

Commit

Permalink
Fix Docker usage (#520)
Browse files Browse the repository at this point in the history
Remove reduncant -it arguments to docker and add --rm to remove the container after use.

Fixes #519

Signed-off-by: Jarno Elovirta <[email protected]>
  • Loading branch information
jelovirt authored Dec 21, 2023
1 parent 004d2d5 commit 4242a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topics/using-docker-images.dita
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<cmd>To build output, map a host directory to a container volume and specify options for the
<cmdname>dita</cmdname> command.</cmd>
<stepxmp>
<codeblock outputclass="syntax-bash">$ <cmdname>docker</cmdname> run -it \
<codeblock outputclass="syntax-bash">$ <cmdname>docker</cmdname> run --rm \
-v /Users/<varname>username</varname>/source:/src ghcr.io/dita-ot/dita-ot:<keyword keyref="maintenance-version"/> \
-i /src/input.ditamap \
-o /src/out \
Expand All @@ -92,7 +92,7 @@
<div platform="windows">
<p>On Windows, if your <filepath>Users</filepath> directory is on the <filepath>C:\</filepath> drive, use
<filepath>/c/Users/…</filepath> to map the host directory:</p>
<codeblock>> C:\Users\username> <cmdname>docker</cmdname> run -it ^
<codeblock>> C:\Users\username> <cmdname>docker</cmdname> run --rm ^
-v /c/Users/<varname>username</varname>/source:/src ghcr.io/dita-ot/dita-ot:<keyword keyref="maintenance-version"/> ^
-i /src/input.ditamap ^
-o /src/out ^
Expand Down

0 comments on commit 4242a72

Please sign in to comment.