podman-volume-create(1) General Commands Manual podman-volume-create(1) (NAME) podman-volume-create - (SYNOPSIS) podman volume create [] [] (DESCRIPTION) (volume) . . --label --opt . (OPTIONS) --driver, -d=driver ( local). : local image. local --opt mount(8) . image . overlay (commit) . local image . volume_plugins containers.conf(5) . --gid=gid (GID) . --opt o=gid=*gid* mount . GID chown . --help --ignore . . --label, -l=label ( --label mykey=value). . podman volume inspect podman volume ls . --opt, -o=option . (local) . local : type device o [no]copy. o type -t mount(8) . o device device mount(8) . o copy ( ) . copy . o (mount) ( -o) mount(8) : o o uid gid UID GID mount(8) . o o size inodes inode noquota . size "tmpfs" "xfs[note]" . inodes "xfs[note]" . : xfs prjquota xfs_quota(8) . . o o UID/GID local (root) . o o timeout . --opt=o=timeout=10 . --opt,-o -o . podman volume create -o=o=uid=1000 -o=uid=1000. image image . image . local image . . --uid=uid (UID) . --opt o=uid=*uid* mount . UID chown . (QUOTAS) podman volume create XFS inode . XFS pquota . /etc/fstab: /dev/podman/podman-var /var xfs defaults,x-systemd.device-timeout=0,pquota 1 2 XFS . . xfs_quota : echo 100000:/var/lib/containers/storage/overlay >> /etc/projects echo 200000:/var/lib/containers/storage/volumes >> /etc/projects echo storage:100000 >> /etc/projid echo volumes:200000 >> /etc/projid xfs_quota -x -c 'project -s storage volumes' / overlay (start offset) . ( >= 100000) . 200000 . xfs_quota containers/storage . (EXAMPLES) : $ podman volume create : $ podman volume create myvol : $ podman volume create --label foo=bar myvol tmpfs : # podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=size=2M,nodev,noexec myvol tmpfs testvol : # podman volume create --opt device=tmpfs --opt type=tmpfs --opt o=uid=1000,gid=1000 testvol UID GID : # podman volume create --uid 1000 --gid 1000 myvol containers/storage: # podman volume create --driver image --opt image=fedora:latest fedoraVol (MOUNT EXAMPLES) podman volume create type device o local mount(8) . s3fs-fuse s3fs-fuse s3fs FUSE s3 . : $ doas dnf install s3fs-fuse : $ s3fs --help $ s3fs -o use_xattr,endpoint=aq-central-1 bucket:/prefix /mnt mount(8) $ mount -t fuse.s3fs -o use_xattr,endpoint=aq-central-1 bucket:/prefix /mnt podman volume create $ podman volume create s3fs-fuse-volume -o type=fuse.s3fs -o device=bucket:/prefix -o o=use_xattr,endpoint=aq-central-1 : $ podman run -v s3fs-fuse-volume:/s3:z --rm -it fedora:latest . root . "Permission denied" . $ podman run --user bin:bin -v s3fs-fuse-volume:/s3:z,U --rm -it fedora:latest $ ls /s3 # ls: /s3: Permission denied FUSE allow_other . > : fuse . $ podman volume create s3fs-fuse-other-volume -o type=fuse.s3fs -o device=bucket:/prefix -o o=allow_other,use_xattr,endpoint=aq-central-1 $ podman run --user bin:bin -v s3fs-fuse-volume:/s3:z,U --rm -it fedora:latest $ ls /s3 s3fs . prefix/ s3 : $ aws s3api put-object --bucket bucket --key prefix/ goofys . FUSE Google Cloud Storage Azure Blob Storage . (SEE ALSO) podman(1), containers.conf(5), podman-volume(1), mount(8), xfs_quota(8), xfs_quota(8), projects(5), projid(5) (HISTORY) Matthew Heon mheon@redhat.com Urvashi Mohnani umohnani@redhat.com podman-volume-create(1)