admin管理员组文章数量:1431720
I've setup Podman using non-root user in CentOS 9 machine.
The user is added to docker
group. I am able to run and setup containers in the env as well. But when trying to run and setup the db2server using below command:
podman run -d -e DB2INSTANCE=test \
--name db2_container \
-e LICENSE=accept \
-e DB2INST1_PASSWORD=mypassword \
-e DBNAME=testdb \
-v database:/database \
--privileged=true \
-p 50002:50002 \
docker.io/ibmcom/db2:11.5.7.0a
The container is failing to come up and following error is encountered.
No Cgroup memory limit detected, instance memory will follow automatic tuning
(*) Remounting /database with suid...
mount: /database: permission denied.
(*) Nothing appears in the Db2 directory. will skip update/upgrade.
(*) Code level is the same. No update/upgrade needed.
And the db2 container is not coming up.
Podman version: podman version 5.0.2
Already tried solutions:
- Tried to disable SELinux, using
--security-opt label=disable
. This as well and it didn't work. I got the same error again. - Tried to do userns-id, that as well didn't work.
How can I successfully run db2 container using Podman (non-root) user in CentOS 9 machine?
P.S. The same works if I try using root user in the machine.
本文标签: How to setup DB2 container in Linux VM using Podman (nonroot) userStack Overflow
版权声明:本文标题:How to setup DB2 container in Linux VM using Podman (non-root) user - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745573312a2664179.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论