1

I am setting up the Sitecore project with docker and getting the following error :

Service 'cm' failed to build: Build failed

enter image description here

While running the docker-compose build in the Powershell script.

The docker desktop containers look like this: enter image description here

Is there any way to solve this issue?

Note: IIS is stopped

4
  • Can you share the Dockerfile? Sep 1, 2022 at 22:15
  • As well as what variables you are providing in the build process. Sep 1, 2022 at 22:29
  • I will revisit all the changes done to default docker files and look for potential root cause. Is it the first Move-File step that failed or the previous Move-Item steps succeeded but only this one failed. A few quick tips that usually help to resolve such issues is checking if Containers is enabled in windows features and having hyper-v enabled for Docker.
    – Ghan
    Sep 2, 2022 at 13:13
  • @Ghanendra both the options are already checked in windows and only this step is getting failed all other previous are successfully completed Sep 5, 2022 at 7:40

1 Answer 1

1

You can cross check few things

  1. Use docker compose v2 is unchecked

enter image description here

  1. Make sure other services are stopped or run the below commands:
  • get-service w3svc | Stop-Service

  • Stop-Service MSSQLSERVER

  • get-service *xconnect* | Stop-Service

  • get-service *solr* | Stop-Service

  1. Make sure the specified folder/current user has rights to update the folder
  2. See docker logs for details
  3. Sometimes the docker command gives issue but when again we do Compose down and then up, it works.

These are some basic steps, may be you can if it solve your issue, else you can share log details here.

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.