Skip to content

Commit

Permalink
Fix tutorial for rootless mode
Browse files Browse the repository at this point in the history
Users have gotten confused when attempting the introduction turturial in
rootless mode.  Explain that they have to `buildah unshare` before
mounting the image.

Fixes: #2833

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Feb 10, 2021
1 parent 0508fba commit 7775e0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/tutorials/01-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ Nope. This really is empty. The package installer `dnf` is not even inside this

# scratchmnt=$(buildah mount $newcontainer)

Note: If attempting to mount in rootless mode, the command fails. Mounting an image needs to be done in a different mount namespace. Enter the mount namespace by executing the `buildah unshare` command. See buildah-mount(1) man page for more information.

$ buildah unshare
# scratchmnt=$(buildah mount $newcontainer)

By echoing `$scratchmnt` we can see the path for the [overlay image](https://wiki.archlinux.org/index.php/Overlay_filesystem), which gives you a link directly to the root file system of the container.

# echo $scratchmnt
Expand Down

0 comments on commit 7775e0f

Please sign in to comment.