How to open multiple terminals using docker?

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…