I'm not sure where this problem is coming from so I'll describe it and maybe someone has a clue!
On Mac.
Using Docker for Mac.
I'm running a container from the linux image.
I then start up sqlcmd via mssql sql-cli. By default it points to master.
I use a different database. Run some commands (.tables, a sql query).
If I let it sit for about one minute it has reverted to master. For example if I re run the tsql query, it says the table I'm querying doesn't exist. Then I do some commands to discover I'm back on master.
I don't know if this is coming from the image or from sql-cli.
Thanks