docker-compose up --build is used to build the image and run the containers. docker-compose down is for tearing down the running containers.
I used the above code from Git repo and I was successfully able to run containers with docker-compose up --build. If you are facing the problem after you are accessing the web application on the browser then welcome to the world of DevOps. You will have to fix the application code then.
So the problem is coming when you are accessing the webapplication in the browser and not when you are running containers with the help of docker-compose up --build?
Please login to comment
14 Comments
its the same error when i use finished Project Source Code : Role "hello_flask" does not exist.
Can you please let me know in which step are you facing this error?
Upvote Share@Vagdevi K
Upvote Shareis there some step missing ? for creating the Role/ User hello_flask ?
Upvote ShareCan you please let me know in which step are you facing this error?
Upvote Sharefailed: FATAL: password authentication failed for user "hello_flask"
Upvote ShareHello,
Can you please let me know in which step are you facing this error?
I could successfully build the image and run containers.
are you using this code ?
https://github.com/cloudxlab/user-wishlist-app.git
its when she tries to display if a user and entries exists . She is running docker-compose down && docker-compose up --build .
maybe its the version ?
Upvote ShareAbhinav Singh
Upvote Sharedocker-compose up --build is used to build the image and run the containers. docker-compose down is for tearing down the running containers.
I used the above code from Git repo and I was successfully able to run containers with docker-compose up --build. If you are facing the problem after you are accessing the web application on the browser then welcome to the world of DevOps. You will have to fix the application code then.
So the problem is coming when you are accessing the webapplication in the browser and not when you are running containers with the help of docker-compose up --build?
Upvote Shareits coming when i do docker-compose down && docker-compose up --build
Upvote Sharefrom where are you runing the command ? your on what system ? are you on windows 10 ? what versions of the dependencies are you using ?
Upvote Share