Skip to content

eShop on Mac + VS Code fails to pull redis, postgre and eventbus images #868

@raultorrecilla

Description

@raultorrecilla

## Steps to reproduce
Clone the repo and run it in a Mac with VS Code with C# DevKit installed, 9.0 sdk.
See errors below, seems like we can't create redis, postgre and eventBus containers.

They appear as Failed to start in UI.

raultorrecilla@Rauls-MacBook-Pro eShop.AppHost % dotnet run --project eShop.AppHost.csproj 

Using launch settings from Properties/launchSettings.json...
Building...
info: Aspire.Hosting.DistributedApplication[0]
      Aspire version: 9.3.0+f76a033601ade4a17a422d5d1e4d004ab85e5179
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Application host directory is: /Users/raultorrecilla/src/eShop/src/eShop.AppHost
info: Aspire.Hosting.DistributedApplication[0]
      Now listening on: https://localhost:19888
info: Aspire.Hosting.DistributedApplication[0]
      Login to the dashboard at https://localhost:19888/login?t=29b985c6f4ea7030a86849beffb3f973
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
      could not create the container    {"Container": {"name":"eventbus-39c02f9a"}, "Reconciliation": 7, "ContainerName": "eventbus-39c02f9a", "error": "object not found\ncontainer not found\ndocker command 'CreateContainer' returned with non-zero exit code -1: command output: Stdout: '' Stderr: ''"}
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
      could not create the container    {"Container": {"name":"redis-ecabasaw"}, "Reconciliation": 4, "ContainerName": "redis-ecabasaw", "error": "object not found\ncontainer not found\ndocker command 'CreateContainer' returned with non-zero exit code -1: command output: Stdout: '' Stderr: ''"}
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
      could not create the container    {"Container": {"name":"postgres-39c02f9a"}, "Reconciliation": 11, "ContainerName": "postgres-39c02f9a", "error": "object not found\ncontainer not found\ndocker command 'CreateContainer' returned with non-zero exit code -1: command output: Stdout: '' Stderr: ''"}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler.Proxy[0]
      Error handling TCP connection     {"Service": {"name":"postgres"}, "error": "no endpoints configured"}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler.Proxy[0]
      Error handling TCP connection     {"Service": {"name":"postgres"}, "error": "no endpoints configured"}
dotnet --info

.NET SDK:
Version: 9.0.303
Commit: 5d97611193
Workload version: 9.0.300-manifests.183aaee6
MSBuild version: 17.14.13+65391c53b

Runtime Environment:
OS Name: Mac OS X
OS Version: 15.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/9.0.303/

.NET workloads installed:
[maui]
Installation Source: SDK 9.0.300
Manifest Version: 9.0.51/9.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/9.0.100/microsoft.net.sdk.maui/9.0.51/WorkloadManifest.json
Install Type: FileBased

Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.7
Architecture: arm64
Commit: 3c298d9f00

.NET SDKs installed:
9.0.303 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions