{"id":758,"date":"2019-12-05T14:44:16","date_gmt":"2019-12-05T20:44:16","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=758"},"modified":"2019-12-05T14:49:55","modified_gmt":"2019-12-05T20:49:55","slug":"install-sql-server-on-windows-10-using-docker","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/install-sql-server-on-windows-10-using-docker\/","title":{"rendered":"Install SQL Server on Windows 10 using Docker"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/docker_facebook_share.png\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"287\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/docker_facebook_share.png\" alt=\"\" class=\"wp-image-781\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/docker_facebook_share.png 336w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/docker_facebook_share-300x256.png 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Starting with SQL Server 2017, Microsoft announced you can run SQL in Docker containers. This is great news for DBA\u2019s because we tend to run multiple installations of SQL Server locally and with Docker we can spin up (or remove) a SQL instance fairly quickly.<\/p>\n\n\n\n<p>I\u2019m not going to go into what Docker is because there\u2019s\nan entire <a href=\"https:\/\/docs.docker.com\/engine\/docker-overview\/\">website<\/a>\nthat goes into much more detail than I ever could. This post is going to focus\non a simple SQL installation on Windows 10 using Docker. Let \u2018s gooooooo!<\/p>\n\n\n\n<p>First, let\u2019s download and install the latest version of Docker. To find the latest version, open an internet browser and navigate to <a href=\"https:\/\/docs.docker.com\/docker-for-windows\/install\/\">https:\/\/docs.docker.com\/docker-for-windows\/install\/<\/a>. From here, click \u201cDownload from Docker Hub\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"250\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-1.png\" alt=\"\" class=\"wp-image-759\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-1.png 912w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-1-300x82.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-1-768x211.png 768w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/a><\/figure>\n\n\n\n<p>You will need to create a docker ID and password if you don\u2019t have one. Once you have this info let\u2019s login.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"486\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-2.png\" alt=\"\" class=\"wp-image-760\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-2.png 531w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-2-300x275.png 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/a><\/figure>\n\n\n\n<p>Next, let\u2019s click \u201cGet started with Docker Desktop\u201d from the home page and \u201cDownload Docker Desktop for Windows\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"277\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3-1024x277.png\" alt=\"\" class=\"wp-image-761\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3-1024x277.png 1024w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3-300x81.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3-768x208.png 768w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-3.png 1256w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"549\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-4.png\" alt=\"\" class=\"wp-image-762\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-4.png 801w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-4-300x206.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-4-768x526.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/a><\/figure>\n\n\n\n<p>After the download is complete, go ahead and start the install. On the Configuration screen, I\u2019m going to Use Windows containers instead of Linux. Click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"246\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-5.png\" alt=\"\" class=\"wp-image-763\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-5.png 652w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-5-300x113.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p>Docker Desktop is installing:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"484\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-6.png\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-6.png 702w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-6-300x207.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a><\/figure>\n\n\n\n<p>&nbsp;After\ninstallation succeeds, you must log out so make sure to save everything!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"481\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-7.png\" alt=\"\" class=\"wp-image-765\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-7.png 701w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-7-300x206.png 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><\/figure>\n\n\n\n<p>Upon logging back in, you will be greeted with this message, Hit OK and reboot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"247\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-8.png\" alt=\"\" class=\"wp-image-766\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-8.png 684w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-8-300x108.png 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a><\/figure>\n\n\n\n<p>After reboot, let\u2019s open Powershell (as administrator)\nand issue the following statement. This will show you that Docker is installed\nproperly and it will give you the version we are running.<\/p>\n\n\n\n<p><em>Docker Version<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"435\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-9.png\" alt=\"\" class=\"wp-image-767\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-9.png 463w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-9-300x282.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/a><\/figure>\n\n\n\n<p>Next, let\u2019s do a search for a SQL Server image. Back in Docker Hub, in the search box, let\u2019s type SQL Server and click on Microsoft SQL Server:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10-1024x429.png\" alt=\"\" class=\"wp-image-768\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10-1024x429.png 1024w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10-300x126.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10-768x322.png 768w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-10.png 1278w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>This page will give you all sorts of valuable information. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11-1024x646.png\" alt=\"\" class=\"wp-image-769\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11-1024x646.png 1024w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11-300x189.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11-768x485.png 768w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-11.png 1274w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>You can also use the following PowerShell statement to\npull SQL Server images:<\/p>\n\n\n\n<p><em>Docker search Microsoft<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"857\" height=\"595\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-12.png\" alt=\"\" class=\"wp-image-770\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-12.png 857w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-12-300x208.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-12-768x533.png 768w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/figure>\n\n\n\n<p>Again, from Powershell, let\u2019s download the Microsoft SQL\nServer Developer Edition images. To do this use the following:<\/p>\n\n\n\n<p><em>Docker pull microsoft\/mssql-server-windows-developer <\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"267\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-13.png\" alt=\"\" class=\"wp-image-771\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-13.png 761w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-13-300x105.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/a><\/figure>\n\n\n\n<p>This will take a few minutes so grab some coffee\u2026..or a\nbeer.<\/p>\n\n\n\n<p>Once the download is complete you can run the following statement to see the images downloaded:<\/p>\n\n\n\n<p><em>Docker images<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"73\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-14.png\" alt=\"\" class=\"wp-image-772\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-14.png 790w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-14-300x28.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-14-768x71.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/a><\/figure>\n\n\n\n<p>OK, we have Docker installed and our SQL Server image\ndownloaded. Now the fun part\u2026.install SQL Server! In PowerShell, let\u2019s run the\nfollowing:<\/p>\n\n\n\n<p><em>Docker run &#8211;name DockerSQL -d -p 14331:1433\n-e sa_password=<\/em> <em>St0ngP@SSw0rd! -e ACCEPT_EULA=Y microsoft\/mssql-server-windows-developer\n<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8211;name \u2013 this is the name of the container\nyou are creating<\/li><li>-d &#8211; Runs the container in the background\notherwise the container will take over your cmd when it starts <\/li><li>&#8211; p port:port &#8211; Maps a TCP port on the host\nenvironment (first value) with a TCP port in the container (second value). In\nthis example, SQL Server is listening on TCP 14331 in the container and this is\nexposed to the port, 1433, on the host. I\u2019m using 14331 because I\u2019ll create\nmultiple containers and each container needs a different port number.<\/li><li>-e &#8211; Creates environment variables under the\ncontainer execution runtime, for example, sa password and End User License\nAgreement (EULA)<\/li><li>sa_password \u2013 Create sa password for SQL\ninstance (Hint, don\u2019t use a $)<\/li><li>ACCEPT_EULA \u2013 Yes<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"42\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15-1024x42.png\" alt=\"\" class=\"wp-image-773\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15-1024x42.png 1024w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15-300x12.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15-768x32.png 768w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-15.png 1116w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>It will take a few minutes to finish the install, but it\u2019s\nmuch shorter than a regular SQL install. Once finished, run the following to\nget the IP address of the container (make sure to use your container name after\ndocker inspect):<\/p>\n\n\n\n<p><em>$Container_1 = docker inspect DockerSQL | <br> ConvertFrom-Json | <br> select -ExpandProperty SyncRoot | <br> select -expand netWorkSettings | <br> select -ExpandProperty Networks | <br> Select -ExpandProperty nat | <br> Select IPAddress <br> $Container_1<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"187\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-16.png\" alt=\"\" class=\"wp-image-774\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-16.png 475w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-16-300x118.png 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/a><\/figure>\n\n\n\n<p>As you can see, the IP for my container is 172.31.29.174. If I open SQL Server Management Studio and connect to this IP using the sa account and password I created I can connect successfully:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"311\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-17.png\" alt=\"\" class=\"wp-image-775\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-17.png 474w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-17-300x197.png 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"335\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-18.png\" alt=\"\" class=\"wp-image-776\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-18.png 728w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-18-300x138.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><\/figure>\n\n\n\n<p>If you have any issues connecting try using the\nfollowing docker statement to view the logs:<\/p>\n\n\n\n<p><em>Docker container logs \u2013details DockerSQL<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"110\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-19.png\" alt=\"\" class=\"wp-image-777\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-19.png 493w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-19-300x67.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/a><\/figure>\n\n\n\n<p>To remove the container, simply stop the container<\/p>\n\n\n\n<p><em>Docker stop DockerSQL<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"35\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-20.png\" alt=\"\" class=\"wp-image-778\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-20.png 338w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-20-300x31.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/a><\/figure>\n\n\n\n<p>And remove.<\/p>\n\n\n\n<p><em>Docker rm DockerSQL<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"319\" height=\"32\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-21.png\" alt=\"\" class=\"wp-image-779\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-21.png 319w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/12\/SQL-Server-Docker-21-300x30.png 300w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Starting with SQL Server 2017, Microsoft announced you can run SQL in Docker containers. This is great news for DBA\u2019s because we tend to run multiple installations of SQL Server locally and with Docker we can spin up (or remove) a SQL instance fairly quickly. I\u2019m not going to go into what Docker is because [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135,119],"tags":[136,132],"class_list":["post-758","post","type-post","status-publish","format-standard","hentry","category-docker","category-sql-server-2017","tag-docker","tag-sql-server"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=758"}],"version-history":[{"count":2,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/758\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}