PostgreSQL with pgAdmin container fails to start in .NET 8 Aspire project #8519
-
Environment
DescriptionWhen starting my Aspire application with PostgreSQL and pgAdmin, I'm receiving a Docker container creation error. The pgAdmin container fails to start but postgres container runs without problem.
CodeThe relevant code in my Program.cs in the AppHost project:
How can I properly configure the pgAdmin container in an Aspire project to avoid this error? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
What version of docker? |
Beta Was this translation helpful? Give feedback.
-
@SarperMakas can you try with Aspire 9.1? Aspire 8.x is out of support. |
Beta Was this translation helpful? Give feedback.
-
Somehow .NET is failing to create the required temp path for the pgadmin config or Docker is failing to read the path. What Linux distro are you running? I’m wondering if this could be an selinux permission issue… In Aspire 9.2 this issue should go away on its own as we’re switching to using |
Beta Was this translation helpful? Give feedback.
-
Using .NET 9 throws another error instead of this.
Changing my distro worked for me. I changed linux mint to arch linux. |
Beta Was this translation helpful? Give feedback.
Using .NET 9 throws another error instead of this.
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0] could not create the container {"Container": {"name":"db-pgadmin-vmhkcwxq"}, "Reconciliation": 6, "error": "object not found\ncontainer not found\ndocker command 'CreateContainer' returned with non-zero exit code 1: command output: Stdout: '' Stderr: ''"}
Changing my distro worked for me. I changed linux mint to arch linux.