![]() (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”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |