Skip to content

Fix: Failed to run postgres docker container if it is stopped conditi… #1848

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DebasishBarai
Copy link

Bug: Failed to run postgres docker container if it is stopped condition during ./setup.sh run

PR Fixes:

  • 1 Problem statement: If the shell script found any container of the same name cms-db it uses the same container. This works fine if the container is in running condition. But if the container is stopped then also it tries to use the stopped container and failed to do any postgres related action. The same is shown in the problem video here.
  • Problem video:
problem-video.mp4
  • 2 Fix: A conditional check is used before starting the postgres container, if the container of name cms-db is running it will stop and remove the container and start it fresh. The same is shown in the solution video here.
  • Solution video:
solution-video.mp4

Resolves #[Issue Number if there]

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant