Комментарии:
Thanks for the knowledge sharing. I have 2 questions :
How to log in to the container when it is created using docker-compose?
how do pass the container name in docker-compose?
Can we go with the docker compose directly instead of creating that image first and containers for both separately???
ОтветитьWe mentioned flaskapp image name which is getting pull from docker hub in docker-compose.yml under the services so ít necessary to have that image first ??? Because then u will have to create the image first separately to push on docker hub. Why we will follow both things when we can do this by docker compose directly
Ответитьlearn with fun, i like this channel💯
ОтветитьI don't mind even if it's too long. it did help me a lot. thanks
ОтветитьThanks shubham docker ke sb concepts clear ho gye
Great explaination
I'm a beginner, but your way of explaining really helps clarify all the concepts for me, Bhaiya. Thank you!
ОтветитьShubam sir outstanding ha. Ap ne mery concept clear kr diye Thanks Bro.. ❤❤😊
Ответитьvery nice video sir. please share the commands for Docker.
ОтветитьHi bhaiya! you explained it really well, but i am stuck at the point which shows error - OperationalError
MySQLdb.OperationalError: (1044, "Access denied for user 'admin'@'%' to database 'myDb'") , what to do?
Now, for your better learning, I'll give you a small task that will enhance your learning even more. You need to remove 'Hello Dosto'... from the HTML file, and for this, you'll need to make changes in the HTML file.... Question: Do you need to rebuild the image? or Just recreate the container? Doing this will provide great learning... And lastly, Thank you so much, Shubham Sir, for this amazing series. Also, it's beginner-friendly; anyone can start with it.
Ответитьyou're the best
Ответитьthank God i came across this..
Ответитьthanks shubham for this video. :) request you to please make a detailed video on deployment of 3 tier application(end to end project) using jenkins,terraform,kubernetes,docker, vpc. i.e please try to include all the tool in a project so that we understand how everything works in a realtime prod environment. would really appreciate if you can please make a video.
ОтветитьBhaiya eco ho gya video
Ответитьbehtreen
ОтветитьUnknown database 'default_db'")
error found
Very Nice explanation Sir. Like the way you are showing how to troubleshoot the errors
Ответитьfantastic sir
Ответитьshubham I have one doubt regarding the code that is available in your Git Hub in real time code will be given my Developers right?
Ответитьthansk for long video, Appreciated
Ответитьperfect and easy to understand, thanks :)
ОтветитьHi ....Brother, i am facing issue when i am opening the public ip (OperationalError
MySQLdb.OperationalError: (1045, "Access denied for user 'admin'@'172.18.0.2' (using password: YES)")
please response me
Hi Shubam, I have tried this few times but getting this error "MySQLdb.OperationalError: (1044, "Access denied for user 'admin'@'%' to database 'myDb'") " not getting what to do
Ответитьthank you sir for this
Ответитьnice explanation
Ответитьwhy does the container exit as soon as it is run and how to fix this ?
ОтветитьIf anybody is facing issue with flaskapp container getting existed within a second or minute try following step with lot of debugging i tried this
It looks like the MySQL user `admin` doesn't have the necessary permissions to create a database. This is why you're seeing an `Access denied` error.
To resolve this, you need to grant the necessary permissions to the `admin` user. Here’s how you can do it:
1. **Access the MySQL Container with Root Privileges**:
Since you can't create a database with the `admin` user, you'll need to use the root user to grant the necessary permissions. First, access the MySQL container with the root user:
```bash
docker exec -it mysql mysql -u root -p
```
Enter the root password when prompted. If you didn't set a root password, the default is often empty.
2. **Grant Permissions to the `admin` User**:
Once you're in the MySQL shell as the root user, execute the following commands to grant permissions to the `admin` user:
```sql
GRANT ALL PRIVILEGES ON . TO 'admin'@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION;
FLUSH PRIVILEGES;
```
This grants the `admin` user full privileges on all databases. You can modify the privileges to be more restrictive if needed.
3. **Create the Database**:
After granting the permissions, try creating the database again:
```bash
docker exec -it mysql mysql -u admin -padmin -e "CREATE DATABASE IF NOT EXISTS myDb;"
```
4. **Verify the Database Creation**:
Check if the database has been created:
```bash
docker exec -it mysql mysql -u admin -padmin -e "SHOW DATABASES;"
```
5. **Restart Your Flask Container**:
If the database now exists and is accessible, restart your Flask container:
```bash
docker run -d -p 5000:5000 --network=twotier -e MYSQL_HOST=mysql -e MYSQL_USER=admin -e MYSQL_PASSWORD=admin -e MYSQL_DB=myDb --name=flaskapp flaskapp:latest
```
By following these steps, you should be able to resolve the permission issue and successfully start your Flask container. If you encounter any more errors or issues, feel free to ask!
getting an error sir , requirment.txt file does not exist how to resolve this ?
ОтветитьAmazing video bhai, watched many videos but such detailed explanation is the unique one here. Keep it up bro, kudos to you!
ОтветитьIts very good video
ОтветитьShubham Sir, Jfrog par video banaiye whith helm manifest
ОтветитьAwesome content and energy. Good Job!!
ОтветитьVery informative and brilliantly explain in simple terms.
Ответитьhello bhai mera docker compose nahi chal ra
Ответитьniuce....thnks for these videoss
ОтветитьLove you sir.
5th time ye video dekh rha hu. Tb jaa k ab smjh ai hy. 😝 Lekin smj agae to mza arha hy ab padhny kaa
bhaiya apka two-tier wala project chal hi raha jaise hi main run kar rahaa hu docker container exited ho raha multiple troubleshooting ke bad vi kuch nhi ho raha
ОтветитьUnable to connect with web application port 5000
Ответитьhey shubham we are doing this task and container we created by using the image in the project its not strating exiting over and over again
ОтветитьThank you.
Ответитьflaskapp container banane ke bad bhi ( docker ps) command run karne ke baad flaskapp show nahi ho raha hai only Mysql container show ho raha hai .... Aapki har ek step follow karne ke baad bhi vohi problem aara hai ..... Solution batao sir
Ответить