Step by step - Run and Connect to SQL Server in Docker

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • In this video we show you how to spin up an instance of SQL Server in Docker, then connect into it using both SQL Server Management Studio and an “attached shell” running the SQL Server Command Line Tools.
    A companion article can be found at: dotnetplaybook...
    My Book: www.apress.com...

КОМЕНТАРІ • 64

  • @phevos_sk
    @phevos_sk 2 роки тому +1

    Cheers everyone. I followed the exact same steps and when i attempted to connect to my sql server instance via ssms, i was receiving an error message. Is it possible that my issue lies in the fact that i run docker with windows containers and not use a subsystem for linux?

  • @stephandepoorter6386
    @stephandepoorter6386 4 роки тому +5

    Hi Les, How do you deal with db backups, or do you just backup the container ? What if you rebuild/redeploy the container, how do you manage not to loose any data present in the db ?
    Great content btw. Rgds

    • @psadlkfpsk
      @psadlkfpsk 3 роки тому

      Here, enjoy.
      docs.microsoft.com/en-us/sql/linux/sql-server-linux-docker-container-configure?view=sql-server-ver15&pivots=cs1-bash#persist

  • @stevenbale7651
    @stevenbale7651 4 роки тому +1

    Hello Les,
    I tried it but i have the following error
    encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)
    Did you know what's happened ?

  • @asdasx392
    @asdasx392 3 роки тому +1

    I am kind of new to your channel and really like your videos so far (working through the 11 hours). But two questions/comments here - 1. Where did the data file go? Is it in your container or on your local file system. 2. I am really unsure of the real world use case for this. Seems too cumbersome for a dev environment (compared to just installing SQL Express locally) and the idea of running production SQL Server docker container just seems highly questionable.

  • @aqkhana2002
    @aqkhana2002 2 роки тому

    BIG QUESTION : i am on windows 11 and i have installed SQL server in docker how can i map SQL server data / log directory to host machine ? any one have link for help ????

  • @AlexGhoro
    @AlexGhoro 5 років тому +2

    Mate thanks again for these videos, I'm learning a lot, I'm gonna watch now the Docker Compose video, I'm gonna try this but with a postgres DB and see how it goes, would you make a video about db volumes?. Well thanks again you're really good at teaching!

    • @binarythistle
      @binarythistle  5 років тому +2

      Hi Alex. I think I may start to use PostgreSQL for some of my videos going forward, will certainly be more cross-platform friendly! No plans on doing anything on DB volumes at the moment but have added to the backlog of ideas - so thanks! Les

  • @mohamedazzouz6086
    @mohamedazzouz6086 3 місяці тому

    Hello Mr Les Jackson, I find your tutorials very interesting. I have installed sql server on docker on raspberry pi5, but I can't manage to connect to the database on azure data studio or sql server management. I have installed postgres and I connect easily. Can you help me? thank you

  • @MohsenSolhnia
    @MohsenSolhnia Рік тому +1

    finally i found a tutorial that wasn't indian english

  • @AshishMishra-nu5wz
    @AshishMishra-nu5wz 9 місяців тому

    How to access the docker sql server db from client computer

  • @chetangupta7737
    @chetangupta7737 4 роки тому

    Thanks Les for the video. However, when I am running the below command to spin the SQL server container
    docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Pa##word' -e 'MSSQL_PID=Express' -p 1433:9191
    -t -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu
    or
    docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Pa##word' -e 'MSSQL_PID=Express' -p 1433:9191
    -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu
    The container immediately exits.
    docker ps -> returning no container running. So can't connect to this instance from SSMS.
    Could you please suggest? Thanks!

  • @by-Org
    @by-Org 2 роки тому

    thank you Les for everythink. I have a question. ı cant connection to SQL server like you. ı write =>localhost, 1433 =>SA =>Password. but didn't work. Do I need to register somewhere previously?

  • @iankode
    @iankode Рік тому

    unclear to me how PROD would up-scale SQL instances (e.g. spin-up extra containers) to meet load increase when the data is stored within an individual image. Presumably would need some external volume, but I'm still lost how many SQL instances would "share" data except by some replication arrangement. Think I will have to view all your Docker and MicroServices courses to get that wider picture.

  • @HammadBinSajid
    @HammadBinSajid 3 роки тому

    In command what does two ports means i.e 1433:2000 1433 is used to connect to it then what will be 2000 port used for?

  • @vishnuc4661
    @vishnuc4661 Рік тому

    hey ,, Mac users not have sims ,, how to connect ?

  • @nult-tech1449
    @nult-tech1449 2 роки тому

    Could you make a video about connecting to SQL Server on host from docker?

  • @mwiza
    @mwiza 4 роки тому +1

    Very nice tutorial . On Linux or Mac you also have the option of using Azure Data studio (From Microsoft), an alternative to MSSQL server management studio.

  • @soroush_dev
    @soroush_dev 9 місяців тому

    Really useful ❤️‍🔥

  • @saktiprasadswain6546
    @saktiprasadswain6546 4 роки тому

    How can I use same gui version of Sql server on MAC

  • @jhonatan438
    @jhonatan438 2 роки тому

    Just say thank you for your video. Help me too much.

  • @mohamedasem6523
    @mohamedasem6523 2 роки тому

    thank you sir

  • @scubacode41
    @scubacode41 3 роки тому

    on linux you can install azure data studio or dbeaver to connect to sql server

  • @JM-xl3ij
    @JM-xl3ij 4 роки тому

    Hi Les, thanks for the video. If you have Docker running on a Mac and ahem restored a .BAK file to it- can you then connect Filemaker to that instance somehow?

  • @paulomaurj
    @paulomaurj 4 роки тому

    Hi Les! Finally someone to present Docker clearly. Of course, I became a follower of your channel. However, it seems to me that your system is Windows, but you are running an image of SQL for Linux. My system is Windows and I configured the Docker for Linux container. I did the same procedure as shown in the video. The image was left with the "running" icon, but moments later it stops, but does not show any error message.

  • @chiranjit7798
    @chiranjit7798 4 роки тому

    How can I connect a MSSQL DB (external) from my docker container ?

  • @krishna172225
    @krishna172225 4 роки тому

    What's the difference between docker compose and docker swarm

  • @agboy100
    @agboy100 4 роки тому

    Hey Les,
    I am a great fan of your videos. I have started learning Docker and your videos are helping me in a very great way.
    I have one requirement, I have created Chabot using Microsoft Bot Framework. I deployed that chatbot to azure, but its returning dummy data. Here I have to use my SQL Server database within my company. When I give the SQL connection details in Chatbot and run it in Emulator it works fine but when I deployed the same in Azure, it gives me an error. Azure is not able to connect my In-premises database.
    Do you have any way to do this?
    I will be very grateful if you help.

  • @Tiagorockman
    @Tiagorockman 4 роки тому +2

    Thanks for tutorial, so useful.

    • @binarythistle
      @binarythistle  4 роки тому

      Cool glad you got benefit Tiago! Take care, Les

  • @ptrupti91
    @ptrupti91 2 роки тому

    Thank you so much, i am new to docker, its really help me.

  • @213dennisp
    @213dennisp 4 роки тому +1

    very well done. thank you.

  • @BarbarosYurttagul
    @BarbarosYurttagul 2 роки тому

    Excellent tutorial

  • @badrulhussain5545
    @badrulhussain5545 4 роки тому

    Hi Les, would you run sql server in a docker container for production environment. Or is it for developer environment only?

  • @tonyjoanes
    @tonyjoanes 4 роки тому

    Awesome video and lolz at a programmer not knowing name of greater than >

  • @shahid13384
    @shahid13384 3 роки тому

    Thank you Les for Awesome work. Really appreciate your efforts helping us.

  • @CarltonLenartowicz
    @CarltonLenartowicz Рік тому

    Thank you for making this

  • @thegreenmonster650
    @thegreenmonster650 3 роки тому

    Thanks for the video.

  • @Alequez97
    @Alequez97 2 роки тому

    You are amazing! Thank you for what you do. I learned a lot of stuff from you!👍

  • @sekarcse
    @sekarcse 2 роки тому

    Thanks Nice and clean mate.

  • @MR-ne5ww
    @MR-ne5ww 3 роки тому

    Thank u, this video very useful for me

  • @4667malik
    @4667malik 4 роки тому

    How to connect with loch host machine ms sql server via docker container?

  • @siyabongadlamini2904
    @siyabongadlamini2904 3 роки тому

    hello sir you a very good teacher

  • @CYBONIX
    @CYBONIX 4 роки тому

    Wow! Awesome video! I pretty much had my docker container running on my Cenrtos7 VM but wasn't sure how to use MSMM to connect. Thank you, you totally covered everything I need. Definitely subscribing~! ^_^

    • @binarythistle
      @binarythistle  4 роки тому +1

      Thanks for the Sub Mark! 👍 Hope You're safe and well, Cheers from Melbourne, Les

  • @SoundIKS
    @SoundIKS 3 роки тому

    Thank you very much!

  • @longuinni
    @longuinni 5 років тому

    Docker is really nice. Thanks for sharing =] Could do make a video teaching how to deploy an application with docker? If I'm using docker the client will have to install docker to use my app?

    • @binarythistle
      @binarythistle  5 років тому +1

      Hi Fernando - check out the Deploy a .NET Core API to with Docker video on app deployment. If you've created an image of your app for use in Docker then yes you'll need Docker to run it. However if it's a web-based app, then only the server component will need to be hosted in Docker so not necessary for a client to use Docker - just a web browser as normal. Hope that helps?

  • @hiepduy2908
    @hiepduy2908 3 роки тому

    Thank you so much! Best content

  • @danotsonof
    @danotsonof 3 роки тому

    Les, thank you for this video.

  • @mikaelholmberg6966
    @mikaelholmberg6966 4 роки тому

    I gave thumbs up as soon as I heard that awesome accent

  • @raghavbuz
    @raghavbuz 5 років тому

    Nice example. Waiting for your next video regarding Docker Compose.

    • @binarythistle
      @binarythistle  5 років тому

      Hi Raghav. Docker Compose video is half done! I was trying to finish it this weekend but as you can maybe tell from this video I was starting to loose my voice! Hope to have it done shortly. Cheers, Les

  • @MuhammadBerki
    @MuhammadBerki 4 роки тому

    Nice tutorial Thanks

  • @quiters89
    @quiters89 4 роки тому +1

    now a fan of your work. thank you.

  • @thanhhung777
    @thanhhung777 4 роки тому

    Tks you

  • @krishna172225
    @krishna172225 4 роки тому

    Thanks 👍🤩

  • @fritsletlouis9174
    @fritsletlouis9174 4 роки тому

    Super!

  • @vantha5872
    @vantha5872 3 роки тому

    Fantastic.