I'm following the directions at:
https://hub.docker.com/r/ibmcom/db2
The container creation with the instance creation is failing. I don't see how I can change the ownership of /database/config/db2inst1 as suggested below as this whole process is automatic.
D:\>docker run -itd --name geotools-db2 --privileged=true -p 50004:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=mypw -v d:\docker-db2:/database ibmcom/db2
d17d5919e031ad59cb44949d56a3272d4559e69aa7a2d1e24c8e76994d790d04
D:\>docker logs -f geotools-db2
(*) Previous setup has not been detected. Creating the users...
(*) Creating users ...
(*) Creating instance ...
DBI1446I The db2icrt command is running.
DB2 installation is being initialized.
The instance home directory "/database/config/db2inst1" is invalid because it
is not owned by the user "db2inst1". Change the ownership of the home directory
to be owned by the instance user and its primary group.
A major error occurred during the execution that caused this program to
terminate prematurely. If the problem persists, contact your technical service
representative.
------------------------------
David Adler
------------------------------
#Db2