cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

Auto build fails with conflicting docker container #243

Closed feelingsonice closed 2 months ago

feelingsonice commented 2 months ago

Running (cargo build) the basic auto_build example gives me the output:

  Error: Container(Error { msg: "`docker` couldn't spawn container: docker: Error response from daemon: Conflict. The container name \"/cornucopia_postgres\" is already in use by container \"773d6cf431b71da514ee1e7c2e9ea0acd710cce31fde05bc50391e7834d9440b\". You have to remove (or rename) that container to be able to reuse that name.\nSee 'docker run --help'.\n", help: Some("First, check that the docker daemon is up-and-running. Then, make sure that port 5435 is usable and that no container named `cornucopia_postgres` already exists.") })

I have no running container, checked docker ps, and no ports binding to 5432, check sudo lsof -i:5432.

On a Mac M2

feelingsonice commented 2 months ago

Closing in favor of the more appropriate error https://github.com/cornucopia-rs/cornucopia/issues/244