I did this already several times. It does not. I also checked ~/.config/containers,
there were only two items there: empty directory podman and registries.conf with
following contents:
## [[registry]]
##   prefix = "test"
##   location = "docker.test.local"
unqualified-search-registries = [ 'docker.test.local', 'docker.io' ]
To be on the very safe side I repeated the test, I ran podman system reset
and then cleaned up whatever was remaining in  ~/.config/containers and
~/.local/share/containers manually. Then I just podman run alpine.
vfs was used again:
island:kit [master]> ls -la ~/.local/share/containers/storage/
итого 48
drwx------ 10 ivans users 4096 янв 25 20:41 ./
drwxr-xr-x  5 ivans users 4096 янв 25 20:41 ../
-rw-r--r--  1 ivans users    8 янв 25 20:41 defaultNetworkBackend
drwx------  2 ivans users 4096 янв 25 20:41 libpod/
drwx------  2 ivans users 4096 янв 25 20:41 mounts/
drwx------  2 ivans users 4096 янв 25 20:41 networks/
-rw-r--r--  1 ivans users   64 янв 25 20:41 storage.lock
drwx------  2 ivans users 4096 янв 25 20:41 tmp/
-rw-r--r--  1 ivans users    0 янв 25 20:41 userns.lock
drwx------  3 ivans users 4096 янв 25 20:41 vfs/
drwx------  3 ivans users 4096 янв 25 20:41 vfs-containers/
drwx------  3 ivans users 4096 янв 25 20:41 vfs-images/
drwx------  2 ivans users 4096 янв 25 20:41 vfs-layers/
My system has following fuse-related packages:
island:kit [master]> dpkg -l | grep fuse
ii  fuse-overlayfs     1.9-1      amd64  implementation of overlay+shiftfs in FUSE for rootless containers
ii  fuse3              3.13.0-2   amd64  Filesystem in Userspace (3.x version)
ii  libfuse2:amd64     2.9.9-6    amd64  Filesystem in Userspace (library)
ii  libfuse3-3:amd64   3.13.0-2   amd64  Filesystem in Userspace (library) (3.x version)
Rgrds,
On 25.01.2023 17:55, Daniel Walsh wrote:
Is there any config files in ~/.config/containers?

podman system reset

Should remove everything, and from then on Podman should use rootless overlay.

On 1/25/23 09:52, Михаил Иванов wrote:
Is native overlay available in rootless mode?
When I run podman as root there's no problem, overlayfs is picked up
as default in debian. VFS is selected as default only in rootless mode.
Rgrds,
On 25.01.2023 14:03, Giuseppe Scrivano wrote:
Reinhard Tartler <siretart@gmail.com> writes:

On Tue, Jan 24, 2023 at 2:08 PM Daniel Walsh <dwalsh@redhat.com> wrote:

 On 1/24/23 03:47, Reinhard Tartler wrote:

 Dan,

 In Debian, I've chosen to just go with the upstream defaults:
 https://github.com/containers/storage/blob/8428fad6d0d3c4cded8fd7702af36a09f02b858f/storage.conf#L116-L118

 This file is installed verbatim to /usr/share/containers/storage.conf.

 Is there a better choice? Does Fedora/Redhat provide a default storage.conf from somewhere else?

 Thanks,
 -rt

 That should be fine.  Fedora goes with that default as well. Does debian support rootless overlay by default?

 If not then it would fail over to VFS if fuse-overlayfs is not installed.

I'm a bit confused about what you mean with that.

In Debian releases that ship podman 4.x we have at least Linux kernel 6.0. The fuse-overlayfs package is installed by default, but users may opt to not
install it by configuring apt to not install "Recommends" by default.

What else is required for rootless overlay?

Also, if I follow this conversation, then it appears that the default storage.conf requires modification in line 118 (to uncomment the mount_program
option) in order to actually use fuse-overlayfs. I would have expected podman to use fuse-overlayfs if it happens to be installed, and fallback to direct
mount if not. I read Michail's email thread that this appears to be not the case and he had to spend a lot of effort figuring out how to install an
appropriate configuration file. Maybe I'm missing something, but I wonder what we can do to improve the user experience?
what issue do you see if you use native overlay?

Podman prefers native overlay if it is available, since it is faster.
If not, it tries fuse-overlays and if it is not available, it falls back
to vfs.

Could you try from a fresh storage though?  If fuse-overlayfs was
already used, then Podman will continue using it even if native overlay
is available, since the storage metadata is slightly different.

Thanks,
Giuseppe
_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io