Many people knows that MSSQL is available on Ubuntu (Linux) System but its not available for latest and greatest Ubuntu version like currently I am using Ubuntu 25.04.
So we have one alternative way to install MSSQL on Ubuntu 25.04 with the help of Podman and we can use it with the help of Azure Data Studio.
Hear are the steps to install MSSQL on Podman.
1) Considering the Podman is preinstalled on the Ubuntu OS we can execute below command to pull the MSSQL image from microsoft server.
podman run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=MyPass@123" \-p 1433:1433 --name mssql --hostname mssql \-d \mcr.microsoft.com/mssql/server:2022-latest
2) After pulling the image by above command we can test it with below commands.
podman exec -it mssql "bash"
sudo /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "MyPass@123" -N -C
Above command will provide below terminal based MSSQL Playground.
3) Install Azure Data Studio and connect to the MSSQL server with that.
This is how we can install MSSQL container hosted on Podman on Ubuntu Platform.
Top comments (0)