rkttu
4월 9, 2024, 6:39오전
1
.NET Aspire Preview 4에서 Docker Desktop을 대신하여 Podman을 로컬 개발 환경에 쓸 수 있다고 해서 Podman 5를 Podman Desktop for Windows로 설치해서 테스트를 해봤지만 잘 안되기에 이슈를 등록했더니, 호환성 이슈가 있다고 바로 David Fowler님께서 피드백을 주셨네요! 호환성 문제는 Aspire Preview 6에서 해결할 예정이라고 합니다.
정확한 버전을 지정하기 위해 Podman을 설치하실 때, Podman 4.x 버전대만 먼저 찾아서 따로 설치하시고, 그 후에 Podman Desktop for Windows를 설치하시면 될 것 같습니다. 제 경우, Podman 5를 Podman Desktop for Windows로 같이 설치했다가, Podman 5만 삭제하고 Podman 4로 교체 설치해봤는데 문제가 해결되었습니다.
opened 05:52AM - 09 Apr 24 UTC
area-app-model
I'm testing my code to use .NET Aspire out of the box, but it's not working as w… ell as I thought it would, so I'm creating an issue.
Symptoms
- I'm basically experiencing the same symptoms as issue #2922. Every time I start debugging through Visual Studio, I get a message box saying that Docker Desktop cannot start.
- When I run it, the App Host itself runs fine, but the RabbitMQ container fails to run, and the log message shows the following:
```
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
could not inspect the container {"Container": {"name":"messaging"}, "Reconciliation": 2, "error": "json: cannot unmarshal array into Go struct field podmanInspectedContainerConfig.Config.Entrypoint of type string"}
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
container has failed to start {"Container": {"name":"messaging"}, "Reconciliation": 4, "error": "json: cannot unmarshal array into Go struct field podmanInspectedContainerConfig.Config.Entrypoint of type string"}
```
Reproducing Steps
- I created my .NET Aspire project on top of a ReFS partition.
- To explicitly use Podman as the runtime, I set the per-user environment variable 'DOTNET_ASPIRE_CONTAINER_RUNTIME' to 'podman'. After changing the settings, I also restarted my instance of Visual Studio.
- I created an empty dotnet solution and only one App Host project.
- I wrote App Host Program.cs code as follows:
```csharp
var builder = DistributedApplication.CreateBuilder(args);
// Add Rabbit MQ
builder.AddRabbitMQ("messaging");
builder.Build().Run();
```
Environment
- Windows 11 Pro 23H2 (22631.3296) amd64, Korean (ko-KR)
- I'm not using Unicode UTF-8 encoding support (beta feature) on this system.
- Podman was installed using Podman Desktop, version 5.0.1
- During the installation, I verified that the podman machine was created and started fine on top of the WSL 2 environment.
- I enabled Kubernetes support using kind.
- .NET: 8.0.202
- Visual Studio: 17.10.0 Preview 2.0, Korean (ko-KR)
3개의 좋아요