diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-14 21:06:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 21:06:44 +0100 |
commit | a07e5e73a63055e5939c4c076fa0428715105a3b (patch) | |
tree | be1705ee870a4be8ae3ff2a12daf914575531de4 /docs | |
parent | ca303586b3f15ea507eb4f1f9aa9c7658aebc6e4 (diff) | |
parent | 9abfc32e05a067233c5e25297457cd5671246b59 (diff) | |
download | podman-a07e5e73a63055e5939c4c076fa0428715105a3b.tar.gz podman-a07e5e73a63055e5939c4c076fa0428715105a3b.tar.bz2 podman-a07e5e73a63055e5939c4c076fa0428715105a3b.zip |
Merge pull request #5199 from leorochael/patch-1
Enhance fuse-overlayfs instructions.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/tutorials/rootless_tutorial.md | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/docs/tutorials/rootless_tutorial.md b/docs/tutorials/rootless_tutorial.md index 9a31826bd..5978d1210 100644 --- a/docs/tutorials/rootless_tutorial.md +++ b/docs/tutorials/rootless_tutorial.md @@ -31,9 +31,26 @@ The [slirp4netns](https://github.com/rootless-containers/slirp4netns) package pr ### Ensure fuse-overlayfs is installed -When using Podman in a rootless environment, it is recommended to use fuse-overlayfs rather than the VFS file system. Installing the fuse3-devel package gives Podman the dependencies it needs to install, build and use fuse-overlayfs in a rootless environment for you. The fuse-overlayfs project is also available from [GitHub](https://github.com/containers/fuse-overlayfs). This especially needs to be checked on Ubuntu distributions as fuse-overlayfs is not generally installed by default. +When using Podman in a rootless environment, it is recommended to use fuse-overlayfs rather than the VFS file system. For that you need the `fuse-overlayfs` executable available in `$PATH`. -If Podman is installed before fuse-overlayfs, it may be necessary to change the `driver` option under `[storage]` to `"overlay"`. +Your distribution might already provide it in the `fuse-overlayfs` package, but be aware that you need at least version **0.7.6**. This especially needs to be checked on Ubuntu distributions as `fuse-overlayfs` is not generally installed by default and the 0.7.6 version is not available natively on Ubuntu releases prior to **20.04**. + +The fuse-overlayfs project is available from [GitHub](https://github.com/containers/fuse-overlayfs), and provides instructions for easily building a static `fuse-overlayfs` executable. + +If Podman is used before fuse-overlayfs is installed, it may be necessary to adjust the `storage.conf` file (see "User Configuration Files" below) to change the `driver` option under `[storage]` to `"overlay"` and point the `mount_program` option in `[storage.options]` to the path of the `fuse-overlayfs` executable: + +``` +[storage] + driver = "overlay" + + (...) + + [storage.options] + + (...) + + mount_program = "/usr/bin/fuse-overlayfs" +``` ### Enable user namespaces (on RHEL7 machines) @@ -87,11 +104,11 @@ The majority of the work necessary to run Podman in a rootless environment is on Once the Administrator has completed the setup on the machine and then the configurations for the user in /etc/subuid and /etc/subgid, the user can just start using any Podman command that they wish. -### User Configuration Files. +### User Configuration Files -The Podman configuration files for root reside in /usr/share/containers with overrides in /etc/containers. In the rootless environment they reside in ${XDG\_CONFIG\_HOME}/containers and are owned by each individual user. The main files are libpod.conf and storage.conf and the user can modify these files as they wish. +The Podman configuration files for root reside in `/usr/share/containers` with overrides in `/etc/containers`. In the rootless environment they reside in `${XDG_CONFIG_HOME}/containers` (usually `~/.config/containers`) and are owned by each individual user. The main files are `libpod.conf` and `storage.conf` and the user can modify these files as they wish. -The default authorization file used by the `podman login` and `podman logout` commands reside in ${XDG\_RUNTIME\_DIR}/containers/auth.json. +The default authorization file used by the `podman login` and `podman logout` commands reside in `${XDG_RUNTIME_DIR}/containers/auth.json`. ## Systemd unit for rootless container |