microsoft/mssql-server-linux:latest is just the imageName:Version. In this example ~/MsSqlBackup references to the folder in my filesystem and /home/backup/ references to the containers filesystem. So open your command line tool and enter:ĭocker run -name=msssqlNamics -d -v ~/MsSqlBackup:/home/backup/ microsoft/mssql-server-linux:latest We won’t do this in Kitematic but in the command line. Now that server is up and running we need some databases and here comes one advantage of docker - we can mount a volume into docker which references to our filesystem. Your MSSQL server is now reachable with the address of your localhost and the Port number specified on the container. If you change the setting, Kitematic will warn you on save if the port is already in use. You can leave it to the default value or change it to your wishes. Another setting to have a look at is the port setting under Hostname/Ports. In the Environmental Variables we need to enter ACCEPT_EULA as key and YES as value and we can also set the SA_PASSWORD. Switch to settings in the upper right corner of Kitematic.įirst we give our container a name that describes the use of it. This is because we need to make a fews settings before we can run this container. When the image is installed the container starts and then you will see an error. A view with the available versions will open, select the version you want to install, close the view with the (X) and then click create. Click on "CREATE" if you want to install the latest version, if not click the button with the three dots and then on the latest tag. Search for MSSQL and you will find the official mssql-server-linux image from Microsoft. You are running your first Docker container.Ĭertainly we need to configure the container to use it for our purposes. Just search for the one you want, click create and you are done. Just open Kitematic and you get an overview of the images that are available. Now I show you how easy it is to get a Docker container up and running. Note: If you are using Docker on Windows you must decide if you want to use Windows or Linux containers. To install just klick on Kitematic in the Docker menu and follow the instructions. Here I will mostly use the Kitematic GUI and only switch to CMD for special operations that are not supported in Kitematic. Therefore I recommend to install Kitematic which is a GUI that supports basic operations of Docker like installing images and configure the settings of your containers. You can run Docker completely in the Command Line but some things just are easier with a GUI. Apache Solr, MSSQL or MongoDB just to name some that can be important for Sitecore Devs.įirst of all download Docker for Mac or Windows and run the installer. A lot of big software companies create Docker images of their products that you can use out of the box eg. Just for those who have never heard of Docker (which may be few): Docker is a container virtualization that allows you to package up an application with all the parts and dependencies it needs. ![]() I was searching for ways to save as much ressources on my VM as possible and to make my development environment as flexible as possible and in time I became aware of Docker. This has to do with my history as Mac guy and my difficulties to adapt to the Windows system's behaviour. As strange as this may sound but I am developing Sitecore on a Mac with Windows running in a VM. Today I like to show you how Docker can be a really good companion for a Sitecore developer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |