Db2

Db2

Where DBAs and data experts come together to stop operating and start innovating. Connect, share, and shape the AI era with us.


#Data


#Data
#Databases
#Operatingsystems
#Db2
#Databasesolutions
 View Only

Podman on Linux: mount: /database: permission denied

  • 1.  Podman on Linux: mount: /database: permission denied

    Posted 02/06/25 09:13 AM

    Running icr.io/db2_community/db2:latest with rootless Podman fails:

    podman run -it --rm --name db2server -h db2server -v /tmp/db2:/tmp/database --privileged=true \
        -p 50000:50000 \
        -e LICENSE=accept \
        -e DB2INSTANCE=db2inst1 \
        -e DB2INST1_PASSWORD=password \
        -e DBNAME=testdb \
        -e BLU=false \
        -e ENABLE_ORACLE_COMPATIBILITY=false \
        -e UPDATEAVAIL=NO \
        -e TO_CREATE_SAMPLEDB=true \
        -e REPODB=false \
        -e IS_OSXFS=false \
        -e PERSISTENT_HOME=true \
        -e HADR_ENABLED=false \
        -e STORAGE_DIR=/tmp/database \
        icr.io/db2_community/db2:latest

    with the following error:

    (*) Remounting /tmp/database with suid... 
    mount: /tmp/database: permission denied.
     



    ------------------------------
    Tommaso Borgato
    ------------------------------