Dockerfile Tutorial by Example - ( Part II - Best practices )

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 40

  • @robertradi7364
    @robertradi7364 4 роки тому +1

    It's an honor to see this high quality content comes from a Hungarian guy.

    • @takacsmark
      @takacsmark  4 роки тому +1

      Hi Róbert, thanks for connecting! I wish you happy learning!

  • @bobojobo1337
    @bobojobo1337 7 років тому +13

    At last, a docker tutorial everyone understands!

  • @julioribeiro1909
    @julioribeiro1909 4 роки тому +2

    Your method to explain and structure step-by-step is champion. It worth every minute. Tks

  • @onwongjan9621
    @onwongjan9621 5 років тому +1

    After long months of studying, I finally understand docker concept. I hope all Tech teachers know how to teach like the way you do. Even five year old can understand this and when it comes to docker, I am a five-year-old myself!!!! Thank you so much!!!

  • @wade9907
    @wade9907 7 років тому +3

    Anyone who is wanting to learn Docker should watch this guys videos. While longer, it will be worth it. He seems to have a better understanding of Docker than most devs. Including pulling docker images to compare and custom build them, which is what you should do. Grab a slimmed down base image and add specifically what you need.
    @takacsmark I see your using zsh. I hope you have some aliases and custom functions made for your common docker commands. If not, make some :)
    I have this for cleaning dangling:
    alias docker.cleanimage="docker images --filter dangling=true -q | xargs docker rmi"
    as well as this one:
    alias docker.cleancontainer="docker ps -a -q | xargs docker rm"
    Thanks and keep up the videos!

    • @wade9907
      @wade9907 7 років тому

      Forgot, here are my aliases for zsh. I just switched to Oh-My-Zsh, so it isn't huge, but has some handy dandy ones: gist.github.com/WadeShuler/bd873db7cd9051f2c0d231f3f7f3e0a8

    • @takacsmark
      @takacsmark  7 років тому +1

      Wow thank you so much. I don't spend much time on such aliases, I do my hacking after work and time is so precious. Plus I'm really enjoying the sound of Cherry MX blue switches. :)

  • @Laflamablanca969
    @Laflamablanca969 3 роки тому +1

    What a great tutorial

  • @mohitpandey5190
    @mohitpandey5190 4 роки тому +1

    Amazing hands on explanation, Grateful for your work.

  • @VishalAgrawalPune
    @VishalAgrawalPune 6 років тому +1

    This tutorial is helpful to understand how to go with building a Dockerfile from scratch. Thank you.

  • @tejasgandhi7045
    @tejasgandhi7045 6 років тому +1

    Really very nice for person having basic knowledge of Linux command. Good in-depth knowledge...

  • @subhajit1992pal
    @subhajit1992pal 6 років тому +1

    Your tutorial are great , its really very nice to listen your speech , that makes the things very easy to understand. :)

  • @Atlas-ck9vm
    @Atlas-ck9vm 4 роки тому +1

    Excellent tutorial. Thank you.

  • @souvikdhar8797
    @souvikdhar8797 5 років тому +3

    Please prepare tutorials on Docker Volume and Networking

  • @youngzproduction7498
    @youngzproduction7498 5 років тому +1

    Nice explanation. Keep it coming!

  • @pacmadman
    @pacmadman 4 роки тому +1

    excellent! thanks! Brilliant best practice tips...

  • @ajaykamal6228
    @ajaykamal6228 3 роки тому

    Hi I need to setup a reverse nginx proxy for docker container.how to do it?

  • @GeorgiKostov-joromir
    @GeorgiKostov-joromir 7 років тому +3

    Thank you for this useful tutorial : )

  • @jinbaoxin
    @jinbaoxin 6 років тому

    Hi, thanks for the helpful stream, one question, if you can customize your image manually by interactively logining into the base container, installing needed software, and use docker commit to build an image, why would you still use Dockfile? I understand Dockfile is more portable than an image, but in a corporate environment, wouldn't it be easier for you to give a readily built image to another person vs handing over the Dockerfile, and he/she has to build it from scratch? thanks.

    • @takacsmark
      @takacsmark  6 років тому

      I suggest working with the Dockerfile. If you use the Dockerfile, it is clear how the image is built. You can share the Dockerfile with others so that they can work with it, too. You'll also share the image that you build with the Dockerfile on Docker Hub or other Docker Registry. If you use Docker commit, you are often also not sure yourself how you built the final state of the image. Changing it in the future would be a pain if you build an image with docker commit. If you want to upgrade one of your installed components in an image built with commit, you would probably remove the old version and install a new one, you never now what side effects this would have. It's always better to start clean and execute steps that always produce the same results. Especially if you work in a team on a commercial assignment. I'd always go with the Dockerfile, I don't use docker commit at all.

    • @jinbaoxin
      @jinbaoxin 6 років тому

      Thanks for your reply, I am also looking at containerized our current SFTP server, in which we have 100+ users in the /etc/passwd and /etc/shadow file, putting it into docker container would mean that each time we add/remove a user, we'd need to rebuild the container for it to stay persistently , I understand you can map volumes to the host for the user home dirs to stay in persistent state, what about users credentials in passwd/shadow file, can I map them to the host volume too? thanks

  • @georgigeorgiev3765
    @georgigeorgiev3765 6 років тому +1

    You are Amazing, Thank you!

  • @harneet85
    @harneet85 4 роки тому

    Went through two of your tutorials .. it's more of a "what is dockerfile" then a tutorial. .. given my 1 hr into these videos and you have only explained From Copy Run and not to forget the most important one Maintainer... Expected more from these tutorial

  • @sumitraut6987
    @sumitraut6987 6 років тому

    Hi, Could you please provide an example of adding content to bash_profile or bashrc from within a docker file? I need to pass proxy params and aliases which i use frequently.

    • @takacsmark
      @takacsmark  6 років тому

      Wouldn't it be better to add your params as environment variables with ENV? You can add those to the Dockerfile, but it's better to pass at runtem, you can use environment variables in docker run on with docker-compose, maybe this would be a better solution than writing to bash profile.

  • @OliverCaineUk
    @OliverCaineUk 7 років тому

    What does the "alpine" part represent? It's only 5mb isn't it? Is it safe for use on Production? Thanks for the great tutorial by the way... very helpful!

    • @takacsmark
      @takacsmark  7 років тому +2

      Alpine is a linux distribution famous for its small footprint.

  • @franky12
    @franky12 7 років тому +3

    Dangling docker images: Do you know the command "docker prune"? It does the job more easily...

    • @amonaurel3954
      @amonaurel3954 4 роки тому

      excepte it is not a docker command.

  • @5009hatem
    @5009hatem 3 роки тому

    very helpfull BOSS

  • @Schmuck
    @Schmuck 7 років тому

    Please make more videos!

  • @fujinafiul6044
    @fujinafiul6044 5 років тому

    just wow and love

  • @taosun234
    @taosun234 7 років тому

    Thank you!

  • @AlexLapinX
    @AlexLapinX 7 років тому

    Thank you to discover me Alpine. Really convenient Linux distribution.

    • @AlexLapinX
      @AlexLapinX 7 років тому

      And for other things of course

  • @krishnakss8837
    @krishnakss8837 5 років тому

    Thanks :)

  • @AlexLapinX
    @AlexLapinX 7 років тому

    I'm on ADSL conneciton so u can imagine how slow was been this moment 14:16. I managed to take a shower.

  • @AmxCsifier
    @AmxCsifier 7 років тому

    Now I can leave my virtual machines behind