Get your FREE cheat sheet of Docker commands:
Learn and become confident in SQL:
If you want to run SQL Server in a Docker container, you can download it from a Microsoft website using Docker commands.
In this video I'll demonstrate where the images are, how to download one, how to run the container, and connect to it using SSMS.
⏱ TIMESTAMPS:
00:00 - Prerequisites
00:23 - Download the image
01:35 - Docker Run command
03:53 - Connect
05:11 - Stop the docker container
VIDEO LINKS:
Container registry: mcr.microsoft.com
COMMANDS USED:
docker pull mcr.microsoft.com/mssql/server:2019-latest
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=yourStrong(!)Password" -p 1433:1433 --name sqlserver --hostname sqlserver -d mcr.microsoft.com/mssql/server:2019-latest
docker ps -a
docker stop sqlserver
Watch video How to Set Up SQL Server with Docker (2024) online without registration, duration 06 minute 00 second in high hd quality. This video was added by user Database Star 01 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1 thousand once and liked it 5 people.