Replies: 5 comments 1 reply
-
There are no build tags to enable or disable rootless. Rootless mode is automatically enabled when you run Podman as a user who is not root. If you run Podman as root, rootless mode will never be true, even if the binary supports it. I suspect you're running Podman as root. |
Beta Was this translation helpful? Give feedback.
-
Thanks for quick response @mheon that is what i was also assuming there is no tag to enable or disable rootless. Further if i installed podman and i am a root user podman info will show rootless as false as you said right ? Now i created another user and login to that
Now podman info command throwing below error : Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at "/home/rootlessVmware/.local/share/containers/storage/overlay": backing file system is unsupported for this graph driver |
Beta Was this translation helpful? Give feedback.
-
You most likely do not have a new enough kernel for rootless overlayfs and do not have fuse-overlayfs installed. |
Beta Was this translation helpful? Give feedback.
-
This is a discussion not an issue so converting. |
Beta Was this translation helpful? Give feedback.
-
Log info for same : podman --log-level=debug run -dt -p 8080:80/tcp docker.io/library/httpd INFO[0000] podman filtering at log level debug |
Beta Was this translation helpful? Give feedback.
-
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to build podman on PhotonOS but podman rootless is not enable by default. podman info is showing rootless as false.
This is the build section to build an podman RPM :
%build
%if "%{_vendor}" != "debbuild"
%set_build_flags
export CGO_CFLAGS=$CFLAGS
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1//g')
%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
%endif
%endif
export GO111MODULE=off
export GOPATH=$(pwd)/_build:$(pwd)
mkdir _build
cd _build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../../ src/%{import_path}
cd ..
ln -s vendor src
LDFLAGS="-X %{import_path}/libpod/define.buildInfo=$(date +%s)"
%gobuild -o bin/rootlessport %{import_path}/cmd/rootlessport
export BUILDTAGS="seccomp exclude_graphdriver_devicemapper$(hack/btrfs_installed_tag.sh) $ (hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $ (hack/selinux_tag.sh) $(hack/systemd_tag.sh) $ (hack/libsubid_tag.sh)"
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
export BUILDTAGS="seccomp exclude_graphdriver_devicemapper exclude_graphdriver_btrfs btrfs_noversion$(hack/selinux_tag.sh) $ (hack/systemd_tag.sh) $(hack/libsubid_tag.sh) remote"
%gobuild -o bin/%{name}-remote %{import_path}/cmd/%{name}
Steps to reproduce the issue:
1.Building podman RPM
Describe the results you received:
rootless: false
Describe the results you expected:
rootless: true
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
I am building the podman on PhotonOS
Beta Was this translation helpful? Give feedback.
All reactions