Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Clarifications and Enhancements for Docker Installation Instructions #1369

Open
1 task done
SMutyala18 opened this issue Sep 18, 2023 · 1 comment
Open
1 task done

Comments

@SMutyala18
Copy link

SMutyala18 commented Sep 18, 2023

Description of the issue

"Port Already Allocated" Error Hinders Database Container Local Installation Progress.

Screenshot 2023-09-18 155921

Reason for the issue

Database container docker image already occupies port 5432, Resulting in a "Port Already Allocated" Error During Local database Installation.

dockerimg

Ideas of solution

Port Mapping Adjustment:

Advantages:

  • Quick and straightforward solution.
  • Minimal adjustments to the current setup.

Disadvantages:

  • Not suitable if both containers need the same port.
  • Risk of conflicts with other services when using common ports.
docker run -p "5433:5432" -v "$(pwd)/oeplatform_data:/var/lib/postgresql/data" ghcr.io/openenergyplatform/oeplatform-postgres:latest

postgresimg

Workflow checklist

@jh-RLI
Copy link
Contributor

jh-RLI commented Feb 21, 2025

There have been added some updates to the docker setup. You can check again if you want. Ince you pull the latest docker image you also have to delete the data directory in the oeplatform/docker/ as otherwise it will attempt to use the content from the previous database setup.

See https://github.com/OpenEnergyPlatform/oeplatform/tree/develop/docker

jh-RLI added a commit that referenced this issue Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants