Skip to content

Commit

Permalink
Merge pull request #2994 from rhatdan/docs
Browse files Browse the repository at this point in the history
[ci:docs] Fix tutorial for rootless mode
  • Loading branch information
openshift-merge-robot authored Feb 11, 2021
2 parents 3679b9f + 7775e0f commit 2e59c37
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 2e59c37

Please sign in to comment.