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

Can't connect to the docker instance from my data access library

  • 1.  Can't connect to the docker instance from my data access library

    Posted 01/20/20 11:43 AM
    Hello!

    This is the command I ran to set the whole thing up:
    docker run -itd --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=YADDAYADDAYADDA -e DBNAME=testdb -v :"D:\DB2\ProgramData\IBM\DB2\DOCKER-INSTANCE":/database ibmcom/db2

    Which I am sure you will notice is suspiciously similar to the one in the guide :) 
    Now, when I try connecting, i get that the user name or the password aren't valid.
    I would like to contend that the password is certainly right (because I copied from the command!!) therefore the problem must be with the user name.
    Now, my assumption here would be that my user name should be "mydb2". I also tried db2admin to no effect whatsoever. 

    I am surely missing something here and I am at a loss as to what it could be.
    Can you please shed some light for me?

    Thanks!!

    A

    ------------------------------
    Andrea Raimondi
    ------------------------------

    #Db2