I am new to Docker. I was trying to implement MySQL using Docker container.
When it comes to executing mysql command in Docker container, the tutorial shows this command docker exec -it mysql1 mysql -uroot -p
Docker document mentioned docker exec means run a command in container .
The optional i tag means "Keep STDIN open even if not attached" .
The optional t tag means "allocate a pseudo tty" .
What means "Keep STDIN open", what means "attached"?
What means "allocate a pseudo tty"?
I'm not familiar with shell commands. I don't know why '-it' should be added here.
Will it be different if I just type docker exec mysql1 mysql -uroot -p?
So confused, looking forward to any help... thanks...
mysql -h 127.0.0.1client tool on your host. You don’t needdocker execand its attendant root-level privilege to do it.)