DB2: Running DB2 as Container

From Wiki
Revision as of 12:39, 10 October 2023 by Ebasso (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Running DB2 as Container

Create db2data directory

# mkdir -p /opt/db2data


Pull images

podman pull icr.io/db2_community/db2

Running Db2

podman run -d --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=db2inst1 \
-v /opt/db2data:/database db2_community/db2


Cheking Logs

podman logs -f mydb2


Ver também