How to open multiple terminals using docker?

Hi,
Here I am trying to create private ethereum instance using dockerfile. I want to open two terminals and run command1 in terminal1 and execute command2 in terminal2 only when command1 returns true.

Commands are shown below:

Command1: geth --verbosity 4 --port 3000 --networkid
–datadir=/ethereum --rpc --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain “*” --rpcapi “eth, net, web3 ,personal, admin, db,mine”

Command2: geth attach /ethereum/geth.ipc

But I couldn’t get any document related to this. Please help me to resolve this issue.