2-Tier Application Deployment with Docker in One Video | Episode 2

2-Tier Application Deployment with Docker in One Video | Episode 2

TrainWithShubham

1 год назад

40,428 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AnoopJindal-j6g
@AnoopJindal-j6g - 15.02.2024 13:27

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?

Ответить
@priyankagajbhiye3080
@priyankagajbhiye3080 - 16.02.2024 22:23

Can we go with the docker compose directly instead of creating that image first and containers for both separately???

Ответить
@priyankagajbhiye3080
@priyankagajbhiye3080 - 16.02.2024 22:34

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

Ответить
@SwapnaAdhav
@SwapnaAdhav - 04.03.2024 10:37

learn with fun, i like this channel💯

Ответить
@MNBVCX900
@MNBVCX900 - 09.03.2024 09:49

I don't mind even if it's too long. it did help me a lot. thanks

Ответить
@kaustubhchavan9858
@kaustubhchavan9858 - 21.03.2024 08:21

Thanks shubham docker ke sb concepts clear ho gye
Great explaination

Ответить
@57_harshwardhanshinde94
@57_harshwardhanshinde94 - 21.03.2024 10:38

I'm a beginner, but your way of explaining really helps clarify all the concepts for me, Bhaiya. Thank you!

Ответить
@coderhanzala
@coderhanzala - 28.03.2024 02:44

Shubam sir outstanding ha. Ap ne mery concept clear kr diye Thanks Bro.. ❤❤😊

Ответить
@ketansonawane8472
@ketansonawane8472 - 17.04.2024 09:22

very nice video sir. please share the commands for Docker.

Ответить
@arshpreetkaur8076
@arshpreetkaur8076 - 23.04.2024 10:54

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?

Ответить
@shoaibakhtar5889
@shoaibakhtar5889 - 01.05.2024 16:58

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.

Ответить
@inspirehub1.0
@inspirehub1.0 - 09.05.2024 14:58

you're the best

Ответить
@inspirehub1.0
@inspirehub1.0 - 09.05.2024 14:58

thank God i came across this..

Ответить
@Aanchal927
@Aanchal927 - 14.05.2024 19:03

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.

Ответить
@bhaktiraut3609
@bhaktiraut3609 - 27.05.2024 19:09

Bhaiya eco ho gya video

Ответить
@BinBawany
@BinBawany - 31.05.2024 07:22

behtreen

Ответить
@shwetad7532
@shwetad7532 - 07.06.2024 13:54

Unknown database 'default_db'")
error found

Ответить
@sirishak83
@sirishak83 - 11.06.2024 08:18

Very Nice explanation Sir. Like the way you are showing how to troubleshoot the errors

Ответить
@mnuman3692
@mnuman3692 - 14.06.2024 04:20

fantastic sir

Ответить
@MrAd540
@MrAd540 - 21.06.2024 11:01

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?

Ответить
@DevOps_DailyLife
@DevOps_DailyLife - 24.06.2024 14:22

thansk for long video, Appreciated

Ответить
@HiteshVishwakarma253
@HiteshVishwakarma253 - 04.07.2024 16:18

perfect and easy to understand, thanks :)

Ответить
@ssdevil789soumya
@ssdevil789soumya - 04.07.2024 16:32

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

Ответить
@lohithm9785
@lohithm9785 - 06.07.2024 18:12

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

Ответить
@dilipmkp2812
@dilipmkp2812 - 26.07.2024 06:01

thank you sir for this

Ответить
@OManreporter
@OManreporter - 30.07.2024 16:06

nice explanation

Ответить
@dhlsvg156
@dhlsvg156 - 31.07.2024 08:11

why does the container exit as soon as it is run and how to fix this ?

Ответить
@jayeshmehta3067
@jayeshmehta3067 - 16.08.2024 02:03

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!

Ответить
@aryankhandelwal7694
@aryankhandelwal7694 - 20.08.2024 18:30

getting an error sir , requirment.txt file does not exist how to resolve this ?

Ответить
@shaheengamers100
@shaheengamers100 - 20.08.2024 18:49

Amazing video bhai, watched many videos but such detailed explanation is the unique one here. Keep it up bro, kudos to you!

Ответить
@govindraoM-z9k
@govindraoM-z9k - 20.08.2024 20:19

Its very good video

Ответить
@worldtour666
@worldtour666 - 29.08.2024 16:41

Shubham Sir, Jfrog par video banaiye whith helm manifest

Ответить
@sachin3072004
@sachin3072004 - 05.09.2024 14:00

Awesome content and energy. Good Job!!

Ответить
@guardiasofgalaxy
@guardiasofgalaxy - 06.09.2024 22:34

Very informative and brilliantly explain in simple terms.

Ответить
@ankitrawat4834
@ankitrawat4834 - 12.09.2024 09:28

hello bhai mera docker compose nahi chal ra

Ответить
@barkatshaikh8451
@barkatshaikh8451 - 18.09.2024 10:09

niuce....thnks for these videoss

Ответить
@talhaaftab4284
@talhaaftab4284 - 26.09.2024 22:42

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

Ответить
@sarkariadda24
@sarkariadda24 - 30.09.2024 08:15

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

Ответить
@vaishnavithakur8806
@vaishnavithakur8806 - 18.10.2024 18:49

Unable to connect with web application port 5000

Ответить
@JunaidBagwan-ho5hw
@JunaidBagwan-ho5hw - 26.10.2024 20:24

Ответить
@MuddyKhan-r7d
@MuddyKhan-r7d - 27.10.2024 11:06

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

Ответить
@aryamaan_1
@aryamaan_1 - 09.11.2024 00:11

Thank you.

Ответить
@sujitpawar994
@sujitpawar994 - 11.11.2024 13:22

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

Ответить