Docker is the open source software which is used to run software development, software testing, software deployment etc. on containers in an isolated, lightweight and virtualized environment. A developer can maintain his/ her software application and all the necessary executables, libraries, binary code and configuration files in the container isolated from all other applications; and it allows the user to bundle all the libraries, applications, software, and any other resource required to run software application into one package and then deploy the whole package to another server where it is intended to run. So, by using this, developers will no longer say – “It was working perfectly fine at my end, need to check why it is not working on your system”
Using containers will make software application development/ deployment and management easy, efficient and flexible. Docker is best suited to facilitate the work of those who utilize Agile, DevOps and continuous integration and deployment.
It is crucial to understand the following Docker terminologies:
Some confusions that people have about Docker:
The container is neither Infrastructure as a service (IAAS) nor Platform as a service (PAAS). The container can be viewed more as a facilitator to run PAAS.
The container cannot be considered as a VM too. Containers and Virtual machines are made on quite different concepts. Virtual machines share the virtualized infrastructure whereas containerization shares the virtualized operating system (see the below image).
Why do we need Sitecore Docker?
Following are the scenarios where we face issues which can be resolved by using Docker:
How to set up the first Sitecore Docker?
Or run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
You will get something like below screenshot in the same location you ran the command
Go to the docker folder and run
.\Build.ps1 -SitecoreUsername "YOUR dev.sitecore.net USERNAME" -SitecorePassword "YOUR dev.sitecore.net PASSWORD"
This will download the latest version of the site and you prefer to install some previous version
.\Build.ps1 -SitecoreVersion “9.2.0” -SitecoreUsername "YOUR dev.sitecore.net USERNAME" -SitecorePassword "YOUR dev.sitecore.net PASSWORD"
There are other options that you can change in the build.ps1 script based on your requirement.
Talk to us about how we bring together 1:1 personalisation, deep Martech Expertise, CX & Demand Gen Strategy, Engagement Analytics & Cross-Channel Orchestration to drive award winning experiences that convert
Get in touch for a complimentary consultation or a demo today.
Free workshops, expert advice & demos- to help your realize value with Sitecore
RegisterParticipate in our event survey , meet us at our booth , get free giveaways & a chance to win an iPhone 11
Let’s go