SQL server on linux
Working with SQL Server in Linux is not as easy as inside a Windows environment, but it certainly is fully possible when Microsoft started releasing SQL Server docker images. You will not get Sql Server Management Studio, but you get something just as good.

Docker
I'm guessing people are familiar with Docker, if not there is a hundred tutorials out there.
Pull SQL Server container image
there will be different versions, I just use one from an example as of when I wrote this.
You really don't need this, as the image will be pulled when you fire up your container the first time that will depend on this.
docker pull mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04Run docker SQL Server image
Persist the data
You usually want to persist the data outside the docker container so that it does not disappear when you kill the container.
You can read about this topic in docker documentation storage.
For this example I create a docker volume first in a custom location:
docker volume create \
--opt type=none \
--opt device=/mnt/md0/Databases/sql-server/mssql2019-docker \
--opt o=bind \
sqlvolumeRun
Then run and make the container use sqlvolume:
# run SQL Server 2019 as docker image
docker run -e 'ACCEPT_EULA=Y' -e "MSSQL_SA_PASSWORD=MySuperPW666!" \
-p 1433:1433 --name atlesql2019 \
-v sqlvolume:/var/opt/mssql \
-d mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04stop and restart
docker stop mysqlserver2019
docker rm mysqlserver2019Then re-run the docker run script
SQLCMD
Install sqlcmd for your linux distros.
Connect
sqlcmd -S myserver -U saManage in VSCode
Install the MsSql Extension