I've cloned the repository https://github.com/Sitecore/docker-images and was able to build the images. But I haven't managed to run the images. Please see a screen shot with the list of my docker images and the command for running one of them. The process just hang and doesn't send any information.

enter image description here


1 Answer 1


Please note that the Docker image and container identifiers used in the following examples will need to be updated with the values from your own environment.

Run a Sitecore container based on an image:

docker run -d -m 8GB --name <ContainerName> <ImageNameOrID>


docker run -d -m 8GB -p 80 -p 443 -p8983 --name test dockerhub.io/lfaggiani/sitecore-xpsingle:'


docker run -d -m 8GB -p 80 -p 443 -p8983 --name test 846c823a2572

Access to the Sitecore instance that is running in the container

You can access the Sitecore instance from your computer with your preferred browser by following these steps:

Get the container IP

docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' <ContainerNameOrId>


docker exec <ContainerNameOrId> ipconfig


docker exec test ipconfig
docker exec 5bfbd811908f ipconfig
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' test
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' 5bfbd811908f

Update the local "host" file with the following entries

<ContainerIP>                                   habitat.dev.local
<ContainerIP>                                   habitat_xconnect.dev.local

Examples:                                  habitat.dev.local                                  habitat_xconnect.dev.local

Browse to any of the following URLs

The first time may take some time as Sitecore has to warm up:




If no changes have been done in the build files, the domain names must be literal.

Troubleshooting the container with PowerShell

Connect to a running container with a PowerShell console

docker exec -it <ContainerNameOrId> powershell


docker exec -it test powershell
docker exec -it 5bfbd811908f powershell

Run a container with a volume that allows you to copy the Sitecore and IIS logs, and other data out of the container

docker run -d -m 8GB -p 80 -p 443 -p8983 -v E:\Debug:C:\Debug --name <ContainerName> <ImageNameOrID>


docker run -d -m 8GB -p 80 -p 443 -p8983 -v E:\Debug:C:\Debug --name test 'dockerhub.io/lfaggiani/sitecore-xpsingle:'
docker run -d -m 8GB -p 80 -p 443 -p8983 -v E:\Debug:C:\Debug --name test 846c823a2572

Once the container is running, you can connect with a PowerShell console as described above. Inside the container, anyting that is copied to the folder C:\Debug will be automatically saved in the container's host in "E:\Debug".

  • Thank you Ben! It's working like a charm. And thanks for the detailed information. Jan 16, 2019 at 21:31
  • I've created a blog post with some additional information to help people to get started: bendev.es/uncategorized/get-started-with-sitecore-docker-images
    – Ben
    Jan 24, 2019 at 8:06
  • Silly question, but how can I pull an image that I have already in DockerHub but not locally? You mention a 'dockerhub.io' URL...so I tried the same with my registry and repository, and even tried docker image pull but it's not working. I'm logged in fine as well. Mar 4, 2019 at 19:30
  • The "dockerhub.io" string above is within the context of an image's name, it is not a URL. What does "not working" mean?
    – Ben
    Mar 6, 2019 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.