Builds an Umbraco CMS v7.6.3 Docker image based on a
microsoft/aspnet
Windows Container
To use images from this repository you will need to switch Docker to using Windows Containers. If you are new to Docker or Windows Containers the Build And Run Your First Docker Windows Server Container will guide you through the process of getting setup with these pre-requisites. For Windows 10 users the Windows Containers on Windows 10 quickstart covers the same material.
A pre-built Docker image is availble for use on the Docker Hub.
Follow these simple instructions for running the pre-built Docker image in an Administrative level PowerShell command prompt.
# Pull the image from Docker Hub
docker pull ryanmcdonough/umbraco
# Run the Umraco Docker image
docker run -d -P --name umbraco.web ryanmcdonough/umbraco
# Get the IP Address of the running umbraco.web container
# Use this to connect to UmbracoCMS instance on HTTP port 8080
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" umbraco.web
For convenience setting a hosts file entry for umbraco.web
to map to the IP Address of the running container.
Use using regular Docker commands for stopping and restarting the container.
# Clean out any previous containers and images
.\clean.ps1
# Build and run a named container - umbraco.web
.\run.ps1
You should now be able to connect to your running Umbraco CMS instance.
As part of the build process an entry for umbraco.web
was added to the C:\Windows\System32\drivers\etc\hosts
file. The IP address mapped to umbraco.web
was extracted from the running Umbraco container.
Your Umbraco CMS Docker container can be browsed on http://umbraco.web:8080
Take a look at our Developer notes and then dive right in.