Sitecore / Sitecore/container-deployment
Incorrect Network Label Error
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 32
- Forks
- 28
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 4
Description
Upon trying to start the docker container for the first time I am receiving the following error in PowerShell:
time="2023-08-09T22:38:05-04:00" level=warning msg="a network with name xc1-cxa_default exists but was not created by compose.\nSet `external: true` to use an existing network"
network xc1-cxa_default was found but has incorrect label com.docker.compose.network set to ""
To Reproduce
Steps to reproduce the behavior:
- Download the SDK container for XC (Sitecore.Commerce.Container.SDK.4.0.87.zip)
- Install Docker Desktop 4.22.0
- Extract the SDK zip file
- Open PowerShell to download directory
- Browse to the scripts directory
- Run the following command: .\ComposeInit.ps1 -LicenseXmlPath "license.xml" -SitecoreAdminPassword "Password123$" -SqlSaPassword "Password123!" -CdHost "xxx.cd" -CmHost "xxx.cm" -IdHost "xxx.id" -BizFxHost "xxx.bizfx" -AuthoringHost "xxx.authoring" -ShopsHost "xxx.shops" -MinionsHost "xxx.minions" -Isolation "hyperv"
- Browse to the xc1-cxa directory
- Run: docker compose pull
- Run: docker compose up -d
Expected behavior
The docker images load as expected along with the site.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser Microsoft Edge
- Version 22H2 (19045.3208)
- Docker: 4.22.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with scripts/ComposeInit.ps1 and the xc1-cxa Docker Compose setup, then reproduce the reported sequence with Docker Desktop 4.22.0 and the listed PowerShell command. Done means the network-label error no longer prevents docker compose up -d from loading the images and site.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, powershell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100