Port configuration in docker container | -p option in starting docker container | port docker

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 79

  • @daliaaltaie270
    @daliaaltaie270 2 года назад +9

    First time i see nice and clear explanation for docker ports, THANK YOU!

  • @rowenarrow
    @rowenarrow 8 месяцев назад

    Thank you for the clear and awesome breakdown regarding ports.

  • @sachinraj5416
    @sachinraj5416 2 года назад

    Cristal Clear! Thanks! So is basically connecting two machines via any of the available ports.

  • @brirorie
    @brirorie Год назад

    This Was Very Insightful & Easy To Understand. Thank You For This Video Explanation!

  • @marcinmandziej9251
    @marcinmandziej9251 3 года назад +4

    Thanks for the great vid, I finally understand idea of port config :) Great explained!

  • @fermatensieg
    @fermatensieg 2 года назад

    thanks for this video - I can see the web page from another server. good video , simple , easy to understand

  • @SaurabhSingh-hn9fc
    @SaurabhSingh-hn9fc 4 года назад

    Kudos...!!! to you Man, Very crisp & clear explanation

  • @nyquist_control
    @nyquist_control 7 месяцев назад +1

    Very nice, the diagrams were very useful. Thank you

  • @justaninfiredperson
    @justaninfiredperson 4 года назад +1

    Thank you so much for the simplest explanation... I got it quickly

  • @dicksonlukose2137
    @dicksonlukose2137 4 года назад +1

    Very clear explanation. Most appreciated.

  • @20-abdulrehman3
    @20-abdulrehman3 Год назад

    Thank you very much . best explanation now I understand

  • @jonathankewe9415
    @jonathankewe9415 Год назад

    Thanks, just what I needed. Simple and clear explanation. Cheers!

  • @elfarsante
    @elfarsante 3 года назад +1

    Cristal clear! great explanation, thanks man!

  • @AP-sb3vl
    @AP-sb3vl 3 года назад +1

    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

  • @kurubavishnuvardhan9978
    @kurubavishnuvardhan9978 2 года назад

    nice explanation bro

  • @theredd1703
    @theredd1703 Год назад

    Thanks Raj! Great explanation

  • @kankanalamanojbalakrishna2196
    @kankanalamanojbalakrishna2196 2 года назад

    Thankyou brother very useful

  • @931112
    @931112 4 года назад +4

    Short and clear explanation, good work!

  • @cybersecurity3
    @cybersecurity3 Год назад

    Thank you for sharing this video.

  • @codetips2015
    @codetips2015 3 года назад

    Thank you so much for such a clear explanation

  • @husseinrefaat2530
    @husseinrefaat2530 3 года назад

    Very clear explanation. thanks so much

  • @youtube.user.1234
    @youtube.user.1234 3 года назад +1

    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??

  • @maninderjeetbook
    @maninderjeetbook 3 года назад +2

    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.

    • @codetips2015
      @codetips2015 3 года назад +1

      yes the host port has to be unique, so the port will be like -p 1234:1000, -p 2000:1000

  • @ashique12009
    @ashique12009 2 года назад

    Nicely explained.
    Thanks.

  • @shoaibsheikh6781
    @shoaibsheikh6781 5 месяцев назад

    great explaination

  • @Lunolux
    @Lunolux 2 года назад

    this is a great video, thx

  • @LartiZen
    @LartiZen 7 месяцев назад

    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 :-)

  • @Balint92
    @Balint92 3 года назад +1

    Thank you! Good work!

  • @sukriti2144
    @sukriti2144 2 года назад

    It really helped me..thank you

  • @ahsansiddiqui4263
    @ahsansiddiqui4263 3 года назад +1

    once i have published on 8080:8080 where do i publish other github repositiries? everytime i mention 8080: i get already allocated

  • @ahsansiddiqui4263
    @ahsansiddiqui4263 3 года назад +1

    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

  • @DevOpsPulse
    @DevOpsPulse 2 года назад

    Thank you, well explained

  • @demetriusburgess8201
    @demetriusburgess8201 2 года назад

    Great explanation!

  • @zmigyyy
    @zmigyyy 4 года назад

    Thank you! Very good explanation! :)

  • @suggu_sandeep_passion
    @suggu_sandeep_passion 3 года назад

    Very Clear Thank You

  • @Subhra_Bose
    @Subhra_Bose 4 года назад

    Simple..best👍👍

  • @dreiistein
    @dreiistein Год назад

    Thank you very much

  • @FadedDreamzTv
    @FadedDreamzTv Год назад

    so can i have two different containers one using -p 8080:80 then the other -p 8181:80

  • @deepakranjanmishra5641
    @deepakranjanmishra5641 6 месяцев назад

    Please explain where from these two ports , 8080 and 9080 came from ?

    • @codewithrajranjan
      @codewithrajranjan  6 месяцев назад

      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.

    • @deepakranjanmishra5641
      @deepakranjanmishra5641 6 месяцев назад

      @@codewithrajranjan Can you please explain what is this host port and it's use case

    • @codewithrajranjan
      @codewithrajranjan  6 месяцев назад

      Host port is just a normal port. Your application always runs on a port

  • @fathimhiri5926
    @fathimhiri5926 4 года назад +1

    i want to know how to find the default port for any container (without epode)

  • @babarkhan3811
    @babarkhan3811 3 года назад

    Thanks Buddy👍👍👍👍

  • @nani5987
    @nani5987 2 года назад

    you are awesome

  • @kumarcok
    @kumarcok 4 года назад +1

    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 )

  • @gagangayari5981
    @gagangayari5981 Год назад

    How do you know that the apache server is running on port 80 inside the Docker container ?

    • @codewithrajranjan
      @codewithrajranjan  10 месяцев назад

      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

  • @simranbanwait
    @simranbanwait Год назад

    This explanation is so good, even a 5 year old can understand this

  • @na1du
    @na1du 4 года назад

    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?

  • @mohammd100
    @mohammd100 3 года назад

    good job

  • @jatindersinghaujla
    @jatindersinghaujla 2 года назад

    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

  • @kumardchowdary2291
    @kumardchowdary2291 3 года назад

    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

  • @S-Note
    @S-Note 2 года назад

    I have image nginx port 80 not working how to fix?

  • @BudgetBackpackingwithHrishi
    @BudgetBackpackingwithHrishi 3 года назад

    Can you make video for Windows too? I'm not able to access using local host .
    The page is not responding at all.

  • @ajay-lu5gh
    @ajay-lu5gh 2 года назад

    awsm thank you

  • @Marwaha_489
    @Marwaha_489 10 месяцев назад

    How do you know port 80 is exposed already in the container?

    • @codewithrajranjan
      @codewithrajranjan  10 месяцев назад +1

      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

    • @Marwaha_489
      @Marwaha_489 10 месяцев назад

      Thank you.🙏

  • @UnforgetablePavan07
    @UnforgetablePavan07 3 года назад

    Thanks a lot!

  • @hceylan06
    @hceylan06 Год назад

    Thank you.

  • @kcwitch1
    @kcwitch1 Год назад

    thanks raj

  • @avinashnew
    @avinashnew 3 года назад

    Thank you

  • @ilmupadiyoutubechanel
    @ilmupadiyoutubechanel 8 месяцев назад

    Thanks🎉

  • @tonina4807
    @tonina4807 3 года назад

    Thank you so muchh

  • @hephaestusyt2940
    @hephaestusyt2940 4 года назад

    When a docker container is stop and you forgot to open the port, can you use the -p flag when starting the container?

    • @saddudehours
      @saddudehours 3 года назад

      no, you have to delete the container and run it again with the flag set.

    • @hephaestusyt2940
      @hephaestusyt2940 3 года назад

      @@saddudehours got it, thanks man.

  • @Astuslinux
    @Astuslinux Год назад

    Why mine doesn't update?

  • @maskawathlatifturzo3731
    @maskawathlatifturzo3731 3 года назад

    Thanks man

  • @nellieetnini77
    @nellieetnini77 Год назад

    can you teach me volume mapping

  • @devilangel036
    @devilangel036 4 года назад

    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 😭

    • @saddudehours
      @saddudehours 3 года назад

      you have to add those changes to your router, and portfoward. dont do this tho, youll get hacked. use a vps instead.

  • @GrafBazooka
    @GrafBazooka 9 месяцев назад

    gjjjj !

  • @hassanebendaoud4446
    @hassanebendaoud4446 2 года назад

    thank you