Thank you for the clear explanation, I have a quick question if you can help. When port binding, I use localhost:8080 it won't work, though when I use IP of docker machine (obtained using #docker-machine ip default). it does work. Can you please let me know, how do I solve this.? Thank you
I need help. I’ve deployed searx on my synology nas using docker. It works fine for about an hour and then it says connection reset and stops working. Similar problem with jellyfin on docker, if I restart my synology it won’t load until I reboot the router.. for searx I’ve configured the local and docker port and set the firewall rule... what’s going wrong here??
Can a container expose 2 ports, in that case will the port configuration be like -p 2000:1000 -p 2000:10002 or host port has to be unique ?, Thanks for the video, it was very useful.
Interesting, and the inverse ? I have an app in docker and I want that app uses connexion to My Sql Server (mariadb) that is on my local machine (localhost), so outside docker ? remotely :-)
once i have published on 8080:8080 where do i publish other github repositiries? everytime i mention 8080: i get already allocated when ever i change host port i get error provide server name
The range of ports on any operating system can be from 1 to 65535. This means that you can run your application on any port within this range. For this video, we have chosen the 8080 and 9080 ports because they are most commonly used. You can choose whatever number you want and it will run fine for you.
I am newbie in docker , In some document I have seen commands like '-p' flag is used two times in a single command , Would you please explain that ( for example : %docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts )
The default port for any web server is port 80. for example when you hit www.google.com then here also the port is 80. you can read more about this in Apache web server documentation
Hi, your videos are very helpful to learn docker for me. I am looking for the video on docker-compose file syntax but I am not able to find it on your channel if it's there can you please share the link so I can watch the video and learn docker-compose syntax
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down why i get this error when .i am going to start service in the container
The default port on which webserver run is port 80 For example when you hit www.google.com then it means that the google server is running at port 80 You can read more about it on apache web server documentation about the default ports
1. I've used VM ware to use Ubuntu 2. Inside my ubuntu I've deployed the application. 3. I'm struggling to access this application/container over the internet. Can you please let me know the steps to achieve this 😭
First time i see nice and clear explanation for docker ports, THANK YOU!
Thank you for the clear and awesome breakdown regarding ports.
Cristal Clear! Thanks! So is basically connecting two machines via any of the available ports.
This Was Very Insightful & Easy To Understand. Thank You For This Video Explanation!
Thanks for the great vid, I finally understand idea of port config :) Great explained!
thanks for this video - I can see the web page from another server. good video , simple , easy to understand
Kudos...!!! to you Man, Very crisp & clear explanation
Very nice, the diagrams were very useful. Thank you
Thank you so much for the simplest explanation... I got it quickly
Very clear explanation. Most appreciated.
Thank you very much . best explanation now I understand
Thanks, just what I needed. Simple and clear explanation. Cheers!
Cristal clear! great explanation, thanks man!
Thank you for the clear explanation,
I have a quick question if you can help.
When port binding, I use localhost:8080 it won't work, though when I use IP of docker machine (obtained using #docker-machine ip default). it does work.
Can you please let me know, how do I solve this.?
Thank you
nice explanation bro
Thanks Raj! Great explanation
Thankyou brother very useful
Short and clear explanation, good work!
Thank you for sharing this video.
Thank you so much for such a clear explanation
Very clear explanation. thanks so much
I need help. I’ve deployed searx on my synology nas using docker. It works fine for about an hour and then it says connection reset and stops working. Similar problem with jellyfin on docker, if I restart my synology it won’t load until I reboot the router.. for searx I’ve configured the local and docker port and set the firewall rule... what’s going wrong here??
Can a container expose 2 ports, in that case will the port configuration be like -p 2000:1000 -p 2000:10002 or host port has to be unique ?, Thanks for the video, it was very useful.
yes the host port has to be unique, so the port will be like -p 1234:1000, -p 2000:1000
Nicely explained.
Thanks.
great explaination
this is a great video, thx
Interesting, and the inverse ? I have an app in docker and I want that app uses connexion to My Sql Server (mariadb) that is on my local machine (localhost), so outside docker ? remotely :-)
Thank you! Good work!
It really helped me..thank you
once i have published on 8080:8080 where do i publish other github repositiries? everytime i mention 8080: i get already allocated
once i have published on 8080:8080 where do i publish other github repositiries? everytime i mention 8080: i get already allocated when ever i change host port i get error provide server name
Thank you, well explained
Great explanation!
Thank you! Very good explanation! :)
Very Clear Thank You
Simple..best👍👍
Thank you very much
so can i have two different containers one using -p 8080:80 then the other -p 8181:80
Yes you are correct
Please explain where from these two ports , 8080 and 9080 came from ?
The range of ports on any operating system can be from 1 to 65535. This means that you can run your application on any port within this range. For this video, we have chosen the 8080 and 9080 ports because they are most commonly used. You can choose whatever number you want and it will run fine for you.
@@codewithrajranjan Can you please explain what is this host port and it's use case
Host port is just a normal port. Your application always runs on a port
i want to know how to find the default port for any container (without epode)
Thanks Buddy👍👍👍👍
you are awesome
I am newbie in docker , In some document I have seen commands like '-p' flag is used two times in a single command , Would you please explain that ( for example : %docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts )
It means you are exposing two ports
How do you know that the apache server is running on port 80 inside the Docker container ?
The default port for any web server is port 80.
for example when you hit www.google.com then here also the port is 80.
you can read more about this in Apache web server documentation
This explanation is so good, even a 5 year old can understand this
If i am running network as host. Is there a easy way to change docker image port via environment so that there are no conflicts?
good job
Hi, your videos are very helpful to learn docker for me. I am looking for the video on docker-compose file syntax but I am not able to find it on your channel if it's there can you please share the link so I can watch the video and learn docker-compose syntax
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
why i get this error when .i am going to start service in the container
I have image nginx port 80 not working how to fix?
Can you make video for Windows too? I'm not able to access using local host .
The page is not responding at all.
awsm thank you
How do you know port 80 is exposed already in the container?
The default port on which webserver run is port 80
For example when you hit www.google.com then it means that the google server is running at port 80
You can read more about it on apache web server documentation about the default ports
Thank you.🙏
Thanks a lot!
Thank you.
thanks raj
Thank you
Thanks🎉
Thank you so muchh
When a docker container is stop and you forgot to open the port, can you use the -p flag when starting the container?
no, you have to delete the container and run it again with the flag set.
@@saddudehours got it, thanks man.
Why mine doesn't update?
Thanks man
can you teach me volume mapping
1. I've used VM ware to use Ubuntu
2. Inside my ubuntu I've deployed the application.
3. I'm struggling to access this application/container over the internet. Can you please let me know the steps to achieve this 😭
you have to add those changes to your router, and portfoward. dont do this tho, youll get hacked. use a vps instead.
gjjjj !
thank you