Skip to content

Commit 215b0fa

Browse files
darrenn-jacksonDarrenn Jacksoninfotexture
authored
Add Podman --userns option and ID mappings (#649)
Fixes #639 Signed-off-by: Darrenn Jackson <darrenn.jackson@hpe.com> Signed-off-by: Roger Sheen <roger@infotexture.net> Co-authored-by: Darrenn Jackson <darrenn.jackson@hpe.com> Co-authored-by: Roger Sheen <roger@infotexture.net>
1 parent 914ca53 commit 215b0fa

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

topics/using-docker-images.dita

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@
3131
<p>When a container is stopped, any changes made within the container are lost, so source files and generated
3232
output should be stored outside the container. These resources are attached to the container by mounting
3333
directories from the host machine.</p>
34-
<note>If you use
34+
<note type="important">If you use
3535
<xref href="https://podman.io/" format="html" scope="external">Podman</xref> to manage and run your containers,
36-
you can substitute <cmdname>podman</cmdname> for the <cmdname>docker</cmdname> command in the instructions
37-
below.</note>
36+
<xref
37+
href="https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md#using-volumes"
38+
format="html"
39+
scope="external"
40+
>you must substitute</xref>
41+
<userinput>podman --userns=keep-id:uid=<varname>UID</varname>,gid=<varname>GID</varname></userinput> for the
42+
<cmdname>docker</cmdname> command in the instructions below. For DITA-OT versions 4.2.3 and earlier, both
43+
<varname>UID</varname> and <varname>GID</varname> are <userinput>1000</userinput>. For all later DITA-OT
44+
versions, both values are <userinput>1001</userinput>.</note>
3845
</section>
3946
<prereq>
4047
<p>To run the DITA-OT image, you will need to install Docker and be able to access the GitHub Container Registry.

0 commit comments

Comments
 (0)