Skip to content

Get base docker image on Windows buildbox

We will be using mcr.microsoft.com/dotnet/framework/aspnet:4.8 as the required base image for Windows.

  • Log in to the server where internet or Docker registry access is available, and ensure the server is reachable from the build box.
  • Open a terminal and log in to the registry (if available) using the docker login command.
  • Pull the mcr.microsoft.com/dotnet/framework/aspnet:4.8 image

    docker pull mcr.microsoft.com/dotnet/framework/aspnet:4.8
    
    Docker_pull

  • Save the image as a .tar file.

    docker save -o base-image.tar mcr.microsoft.com/dotnet/framework/aspnet:4.8
    
    Docker_save

  • Copy the .tar file to the build box.

  • Load the copied .tar file on the build box to make the base image available.
    docker load -i base-image.tar
    
    Docker_load

Verify the newly loaded base image using the command docker images.

Use or update the base image as needed

  • Navigate to Projects → Desired project → Transform → Components → Click on the 'Containerize' button next to the component. Select_Component

  • Select the profile you want to containerize → In the 'Dockerfile' section, you will find the base Docker image starting with 'FROM' → Click on the 'Edit' button at the bottom to edit the Dockerfile. View_DockerFile

  • Edit the dockerfile and update the old base image to the new desired base image -> Click on 'Save' button at the bottom. Update_bae_image

Done. The updated base image will be used for Transformation phase.