AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() (Note: if you issue the same command subsequently Docker will use the cached local version of the SQL Server Image – making it much quicker to run on future occasions). We didn’t have a local copy of the SQL Server image, so Docker goes out and starts to pull one down from the Docker Hub repository.We’ll dissect the command you’ve just issued in a minute, but just before we do that, the result of running the command was: Hit and if this is the first time you have attempted to run SQL Server in Docker you’ll see something like: Now, (assuming you’ve installed Docker), type the following at the command line, (don’t worry I’ll take you through everything below): docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Pa$$w0rd2019' -e 'MSSQL_PID=Express' -p 1433:1433 -d /mssql/server:2017-latest-ubuntu This is just a simple check to make sure Docker is installed, you should see something similar to the following: Ok, so open a command prompt, and type: docker -version The container is effectively an instance on the application, which you can use.Īs a quick analogy, with OO Software development: When you download and run an image from a repository, it runs as a “container”. ![]() Images are application “blue-prints” stored on an image repository (which is basically a library).NET Core API with Docker for a more detailed discussion on this topic, but basically: Note: Install instructions for Docker can be found where you get the software: Images Vs ContainersĪgain, I’d refer you to my last article: Deploy a. * Windows and Mac users will download “Docker Desktop”, while Linux users will download and run “Docker Community Edition (CE)”. It’s traditionally a “Windows-only” system, so proving you can spin up an instance on any platform running Docker I thought would be cool.Īll you need for this tutorial is either a Mac, or Windows / Linux PC running Docker*.I picked SQL Server as the target app for this article for 2 reasons: So from a developer perspective – it’s awesome – you can concentrate on coding, and not get side-tracking on installing an instance of Oracle on Linux, (for example). SQL Server, Redis, etc.), really quickly without having to go through laborious, (and often confusing), installations. In short however, Docker allows you to “spin-up” instances of applications, (e.g. What is Docker?įor an introduction to Docker, please take a look at my last article: Deploy a. Streamline your development workflow by using Docker to stand up and run SQL Server instances quickly and without fuss. ![]()
0 Comments
Read More
Leave a Reply. |