Тёмный

Build YOUR OWN Dockerfile, Image, and Container - Docker Tutorial 

Techno Tim
Подписаться 246 тыс.
Просмотров 272 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 246   
@TechnoTim
@TechnoTim 2 года назад
Have you built your down Docker container yet?
@barisgunduz
@barisgunduz 2 года назад
Building soon. Thanks again.
@lucasdealmeidacarotta3174
@lucasdealmeidacarotta3174 2 года назад
Yes and I do prefer to do so especially to avoid any crypto mining packages from a third-party image. Two things that I think are cool to share about it in the next video is about the tag USER -- it took me a while to find out about it -- and Docker's buildx -- especially for developers that use SBC as their homelab -- as do I.
@quinnhenry6719
@quinnhenry6719 2 года назад
I was actually working on figuring out a quick little Nginx container for a school project, and this is SOO much simpler than other tutorials I found online, plus you just plain explain thing beautifully. Your videos are just amazing!
@TechnoTim
@TechnoTim 2 года назад
@@quinnhenry6719 Thank you so much!
@Maliuta
@Maliuta 2 года назад
I have avoided containers for a long time now. But I am having to face the fact that I for some things I no longer have an option but to run them as containers - and some of those tools want me to build my own docker images. I was wondering what tool you are using to create your docker files - it has some sort of integration with docker hub, and auto completion (both features I could use, as I don't intend building docker images to be a main part of what I do).
@usimian
@usimian Год назад
Wow, what a great tutorial. In less than 20 minutes you explained what others would have taken hours. Thank you!
@TheRagingDonut
@TheRagingDonut 2 года назад
This timing is legendary. I just started looking into using containers for my setup and the first video i see is this one. Awesome vid btw, just what i needed
@Clarence-Homelab
@Clarence-Homelab 2 года назад
Couldn't agree more about the timing. Although I have been using docker for over a year I only recently built my first docker image which is a clone of wordle and also happens to be based on nginx-alpine. 😃
@tintincr1
@tintincr1 7 месяцев назад
I just wanted to drop you a quick note to express my appreciation for the fantastic video tutorial you created. Your clear explanations and step-by-step guidance made learning 'Docker containers' a breeze!
@DFsdf3443d
@DFsdf3443d Год назад
finally an actual practical tutorial that doesn't spend 90% of the time just explaining a bunch of boilerplate things like how to install it & what containers even are.
@Electrowave
@Electrowave 7 месяцев назад
This is the first video on docker that I have watched that makes sense of docker for me, in a way I can understand. Thank you so much! Now I'm going to attempt my first container 🙂
@yashsolanki069
@yashsolanki069 2 года назад
Your teaching style is great! Would love to see more from you🙌
@5urg3x
@5urg3x Год назад
Bro this video is amazing. I just discovered Docker a few weeks ago, I had always just used Virtual Box or VMWare VMs. I figured out how to spin up a Unifi container pretty quickly, but what I really wanted to know was how to build my own container so I could do some custom things. This video tutorial is perfect!!
@matthewdavis2475
@matthewdavis2475 4 месяца назад
Definitely agreed with all the other comments, great tutorial and a lot of gems worth diving deeper on outside of this video. 3 improvements IMO - 5 to 10 seconds without wasting time 1 - mention the OS you're on 2 - mention the installer of Docker you used 3 - actually show the Dockerfile being created so it's clear about file extension I'm seeing the bigger picture more and more now.
@MrConcord75
@MrConcord75 2 года назад
Omg. You’re video was amazing. So easy to follow and understand. I think I learned more about docker from you than multiple other videos. Thank you!
@denniskluytmans
@denniskluytmans 2 года назад
Awesome!! Exactly what I needed. You sir, are a legend
@mikegbow4203
@mikegbow4203 2 года назад
DUDE thank you! I've been looking for a video like this that starts from the beginning and does a simple example that's easy to follow. Usually the videos all show these big applications that they are wanting to containerize and it can be hard for a beginner to follow along.
@TechnoTim
@TechnoTim 2 года назад
Glad to hear it!
@rukbook
@rukbook Год назад
Man this tutorial is super awsome and beginner-friendly. The presentation style is awesome - to the point and just the enough amount of info in one video. Thanks a lot!
@kevineugenius
@kevineugenius 2 года назад
Thank you so much for NOT starting this with "here's how to download docker, here's how to install docker".
@dragonball41876
@dragonball41876 2 месяца назад
😉
@McWickyyyy
@McWickyyyy 2 года назад
I’ve used Docker for 4-5 years. Just wanted to watch and see how you covered it. Great tutorial. You should do a video on Docker-compose if you haven’t already. I think your teaching and explanation of things is some of the best on RU-vid. Also you can show people Docker desktop and how you can alternatively do some of this stuff via Docker desktop once they learn the basics. I think I also watched a video of yours a while back talking about dual booting from linux and windows…you earned my sub back then cuz your explanation was amazing as it is also in this video. Keep up the awesome work. I’ll be on the lookout for new content so I can learn something new
@TechnoTim
@TechnoTim 2 года назад
Thank you so much! A lot of time and effort goes into my choice of words and how I explain thing so I appreciate you noticing and leaving such a nice comment! More where that came from!!
@johnkmoore99
@johnkmoore99 7 месяцев назад
I did! Well done video, I probably won't need to be building my own containers much but had a special case, need to set up a quick web server to test something. Video was great! Oddly probably the most useful thing for me in the video was "exec into a container". I only knew how to do that from portainer and it wasn't working on one container but through this command in docker I was able to do it!
@Doesntcompute2k
@Doesntcompute2k 2 года назад
Another GREATI video! I love your tutorials. You started out with really "good" content (I've watched from day one), but now, it's at a much higher-level. This tutorial with your direct, to-the-point explanations, really helped me. I've tossed up Docker and K8s but the amount of notes I have is overwhelming. Especially when I want to spend five minutes and not five hours. I set this to over 100 contacts at work, and about 180 (I forget the number in the email group) at home. Programming friends who like similar content. Keep up the great job! (Now rewatching "Uptime Kuma" video to get it working in my new K8s.)
@TechnoTim
@TechnoTim 2 года назад
Thank you so much! Recommending my channel to friends helps more than you know and I really appreciate it!
@mikekadar3325
@mikekadar3325 2 года назад
Nicely done. Lots of help in one place, with end to end examples, in pretty much no time at all. Thanks!
@stefanbogdanovic590
@stefanbogdanovic590 2 года назад
Your videos are phenomenal, yesterday I started looking at Ansible on your channel and made me wanna learn Devops (Ansible and Docker). Thank you so much, your explanations are by far the best on YT. Thank you once again, all the best! 😄
@TechnoTim
@TechnoTim 2 года назад
Glad you like them! Thank you so much!
@traxeonic3600
@traxeonic3600 2 года назад
A container is a runtime environment that only contains the configuration and dependencies required to run that software only. It differentiates itself from a VM because VM's contain everything required to run the OS plus the runtime. I've had to explain this a billion times at work. Thanks for the video!
@TechnoTim
@TechnoTim 2 года назад
Thank you! Just send them this! :)
@angelosalexiou
@angelosalexiou 2 года назад
Thanks for the video! Maybe the best introductory video for docker!
@Shambolicoholic
@Shambolicoholic 2 года назад
Something many of us have wondered about as we install containers 👍 Thanks!
@coletraintechgames2932
@coletraintechgames2932 2 года назад
Very good my man. Loved this sort of thing! Just great overall stuff... Please do more along these lines. I can tell you were "right at home" with this stuff, but it was so good for me. So good, thank you.
@TechnoTim
@TechnoTim 2 года назад
Thank you!
@Guizm0017
@Guizm0017 Год назад
super easy to follow along and properly explained
@devinbartley5768
@devinbartley5768 2 месяца назад
Thanks, this was pretty simple.
@alexplaytop
@alexplaytop 7 месяцев назад
Techno Tim - you are man and good tutor! THX ALOT!!!
@myr3434
@myr3434 2 года назад
I’m just here to say that the title and title screen on this video are fantastic.
@TechnoTim
@TechnoTim 2 года назад
Thank you!
@andrewsouthern3295
@andrewsouthern3295 2 года назад
That intro was smooth !
@magicmanj32
@magicmanj32 11 месяцев назад
Thanks Tim, very informative, I cam to learn how to docker build but got alot more useful info ,thanks
@TechnoTim
@TechnoTim 11 месяцев назад
Glad you enjoyed it
@moeintaherkhani7289
@moeintaherkhani7289 3 месяца назад
Best Docker tutorial by Johnny Depp
@leevandamme
@leevandamme Год назад
@TechnoTim, this is a great tutorial. Thanks for putting this together!
@longrolstral
@longrolstral 7 месяцев назад
Great video. Thanks. I have discovered that running an image using a Dockerfile from Docker Hub, with only the '-d' flag, does not always create a container that stays up and running. I've had to run the image with '-dit' to create the container(s). Also, some images don't run to create the container if a command (CMD in Dockerfile) is missing.
@adjuxnt
@adjuxnt 2 года назад
I think this tutorial was really awesome. Thank you! I followed along and tried all the things while watching. Didn't bother building such a fancy web page tho xD mine was just a hello world, but you got the point across neatly!
@zachwolf5122
@zachwolf5122 2 года назад
5 years later and you’re still teaching me 🤝
@TechnoTim
@TechnoTim 2 года назад
Hey man! Thanks!!
@betterstack
@betterstack 6 месяцев назад
Great job with the tutorial Tim! 🚀If anyone’s looking for more Docker videos, we’ve released a web-based Docker viewer and a logging tutorial to help the community too 💪
@MrDalholm
@MrDalholm 2 года назад
Great video Tim.. Could you perhaps do a follow-up on the CI part?
@grundgaenger
@grundgaenger 2 года назад
Thank you for all your videos. I was able to learn a lot from your work and videos and it would have been much harder to read books and documentation instead. I often see you in your videos typing code into VS Code and "magically" completing "things". Perhaps you can briefly explain at this point which VS extensions you installed and why? Or is it even worth making your own video for it? I hope you have fun making videos like this for a long time to come.
@benjohnson9747
@benjohnson9747 Год назад
Clear and concise. Though I couldn’t get intellisense to work with the FROM command. Where your video has intellisense suggesting available repos after the FROM command.
@pedrolopez4555
@pedrolopez4555 Год назад
Clear and concise. Thank you!
@shrinidhig3672
@shrinidhig3672 2 года назад
had never understood the purpose of .dockerignore... the way you explained is simply superb
@vanopiano
@vanopiano 2 года назад
Thank you for this video with explanation
@Mr.AhmedAlzeidi
@Mr.AhmedAlzeidi 2 года назад
Hi , this is very useful for me ... thank you very much I'm using this tutorial to improve my self with docker projects ..
@AhmetBurakAkay
@AhmetBurakAkay Год назад
High quality video. Thank you.
@ryheinz9544
@ryheinz9544 2 года назад
Wow!..Thanks so much for this video! It was the best explanation I have found! I really learned alot!...Thanks again.
@oleksandrburkhan3277
@oleksandrburkhan3277 Год назад
Thank you! I've created my own docker container!
@dominikbregovic7052
@dominikbregovic7052 Год назад
Your videos are great and they really helped me a lot. Thank you for your effort.
@patrickprucha5522
@patrickprucha5522 Год назад
Actually its rather easier. Now i have 4 images that i use to test my scripts or to mess around with and it took very little time to setup. I couldn't find a good example for building a dockerfile, but will in the long term. I think in the end dockerfile is the way to go. However, what i did was collected a folder with all my scripts and stuff, and created some scripts to setup my environment, which included downloading cli apps like nano, tmux, vim (to practice), wget, curl and mc. Then i copy my dotfiles to /root, and then source the new .bashrc, and voila, a perfectly (for my use) docker container!! excellent!!!!
@Wongmc644
@Wongmc644 Год назад
This is great tutorial. Thanks!
@TechnoTim
@TechnoTim Год назад
Glad you enjoyed it!
@ts47920535
@ts47920535 2 года назад
What an absolute banger of a video. Loved everything. The editing, the pace, what you explained. I learned more in 18 minutes than in other 2 hour long videos about the subject. Got a question, and would love some pointers on how to search for it: I work on web dev and we're having issues running the project on arm / m1 machines, as the project setup is really finicky and needs a really specific host configuration to build the way it should. So my plan with docker is to create an image with everything I need to develop _inside_ the image. Meaning a fully-fledged ubuntu-based image with my zsh, neovim, nvm to manage npm+node, including my configs for all those programs, and my work project too. Pretty much a 'clone' of the important stuff of my PC. I've done simple nginx releases in the past, but i'm completely lost on how to tackle something this complex. - I would work by exec-ing into the docker image. Performance is not an issue, as the image-runner would be really beefy.
@TechnoTim
@TechnoTim 2 года назад
Thank you!
@ryanbyrne1788
@ryanbyrne1788 Год назад
really great tutorial and just what I needed!
@sonnix31
@sonnix31 2 года назад
Really very cool explanation. Will be checking out your content. Thanks man!
@cvought1
@cvought1 2 года назад
Amazing timing Tim!
@rohitbuchake
@rohitbuchake 2 года назад
Because of your Video, I have solve most of the issue, for that Request you please create deep details video for proxmox container
@lcch9755
@lcch9755 2 года назад
You just saved my a$$ bro!!! Thanks a lot
@feibels12
@feibels12 2 года назад
Great video as per usual Tim! I'm developing an IaaS platform for consumer grade hybrid clouds and your videos have helped immensely. Thanks!
@TechnoTim
@TechnoTim 2 года назад
Awesome, thank you!
@brunekxxx91
@brunekxxx91 3 месяца назад
Yeah, after using docker for many years. Only now do i see how actually POWERFUL it is once you actually get to building your own containers
@Democracy_Manifest
@Democracy_Manifest 8 месяцев назад
Great tutorial 👏👏👏
@hectorherrera4193
@hectorherrera4193 Год назад
Muy buena explicacion... Estoy empezando con dockers y este ayuda mucho. Gracias x compartir
@niccodev7704
@niccodev7704 2 года назад
Awesome, that was very clear and easy to follow, thank you 😊
@TechnoTim
@TechnoTim 2 года назад
Thank you!
@crateer
@crateer 2 года назад
Great video and flawless presentation skills! Instant sub!
@TechnoTim
@TechnoTim 2 года назад
Thank you!
@normandrental2695
@normandrental2695 Год назад
This is awesome!! Thank you so much!!
@kermitdafrog8
@kermitdafrog8 10 месяцев назад
Did you ever do a video on putting your docker image on to the Docker Hub?
@balub778
@balub778 2 года назад
I was just about to start a course on udemy for docker, I feel I can avoid 4+ hours in that course with this one video of yours. Now if you could make one like this for docker swarm or kubernetes it would be amazing.
@vanopiano
@vanopiano 2 года назад
swarm and kubernetes are completely different, I propose to start with swarm if you want to make some high availability between your home services and few physical machines
@tzgardner
@tzgardner Месяц назад
Great tutorial! I had a question about the starting point FROM in a Dockerfile. You mentioned you can start with a Linux operating system but you could also start with FROM python. Just wondering what the implications are for your starting point. Like, you wouldn't be able to run your web server if you started with Python? Or does it assume a native OS?
@juliensoyer5786
@juliensoyer5786 2 года назад
Excellent tutorial thank you !
@drjones694
@drjones694 Год назад
Thank you !!!
@joeharyar9873
@joeharyar9873 Год назад
Hi...great tutorial... I understand now K8s only support containerd as runtime interface, so can I still run dockerfile in that K8s? Hope someone can clarify further. Thanks
@kumarnachiketa1981
@kumarnachiketa1981 Год назад
excellent work, thank you!
@D3M0320
@D3M0320 2 года назад
Id like to see you do a tutorial of windows docker containers…it seems to be entail a lot more tedious set up to actually run them…and I’m curious as to what their use cases might be
@Chadminus
@Chadminus Год назад
ey yo we have Johnny Depp here on a glass high caff coffee . respects sire
@abiodunibrahim3340
@abiodunibrahim3340 2 года назад
This is an interesting video I must say. Interested in how images are being pushed to the container registry and Azure app services.
@wahibakamoulcode
@wahibakamoulcode 2 года назад
really loved ur video
@Aza.dChaiwala
@Aza.dChaiwala Месяц назад
In docker file I used the same copy command as you did COPY src/html usr/share/nginx/html but when I cat into dockerfile the copy is empty...how can check the destination path in my local host to confirm if it is the same as urs as it could be the possible issue..thanks
@thomasgiblin4700
@thomasgiblin4700 2 года назад
had a nightmare getting this working on windows 10 home os. Had to enable windows hypervisor platform in windows features then restart Docker. Then stop my default IIS site which was running on port 80. Finally also found the browser was caching web requests from before I had my system setup properly so had to clear manually go in and clear the browser cache. Hoping this will help someone else go through less pain in future!
@mattschwartz5982
@mattschwartz5982 Год назад
What extension are you using with visual studio code to write your Dockerfile?
@Vinnie64
@Vinnie64 Год назад
So if I have an image I got online, do I need to worry about the compose file? or can I just run the image and set env variables?
@dawid_dahl
@dawid_dahl 2 года назад
Great video, thanks!
@ak_propra
@ak_propra 2 года назад
Thanks a lot :)
@devviz
@devviz 2 года назад
11:47 how can i move your rectangular shape to the upper right of the screen to see whats after the created attribute "2 minutes..." something ??
@martin_kuchar
@martin_kuchar Год назад
Hello, please which dockerfile VSC plugin offers image version numbers in FROM section?
@JohnWeland
@JohnWeland 2 года назад
Awesome video! I have a request, do a video on building wikijs on the pi cluster!
@TechnoTim
@TechnoTim 2 года назад
Great suggestion!
@lakshminarasimmanv
@lakshminarasimmanv 2 года назад
Hi techno tim. I love all your videos. Can you please make a video on creating docker swam and deploying traefik and portainer on it?
@andrewtortillas6328
@andrewtortillas6328 9 месяцев назад
When I run docker build . it says it cannot load the metadata for nginx, how can I fix that?
@rossbrook9182
@rossbrook9182 2 года назад
great video
@Erik-fg9fk
@Erik-fg9fk 7 месяцев назад
What should i do if i only see my html documents on my website not my java script files or css files? I have linked my whole folder and if i run my code locally (not on docker) i see those css editing and java script.
@stayupthetree
@stayupthetree 7 месяцев назад
see my vs-code doesnt perform the same way as I type, what am I missing?
@PCMagikHomeLab
@PCMagikHomeLab 2 года назад
You're My MAN :) OSSOM!
@TechnoTim
@TechnoTim 2 года назад
Thank you! 👍👍
@anstbt
@anstbt Год назад
thanks
@clarkkentgwapo1
@clarkkentgwapo1 2 года назад
How we connect mysql and php using docker? For database
@UntouchedWagons
@UntouchedWagons 2 года назад
That website is more accessible than my bank's.
@TechnoTim
@TechnoTim 2 года назад
Ha!! Love it!
@zr0gravity
@zr0gravity 2 года назад
Dockerhub shows 1.21.6-alpine and 1.22.0-alpine in your video. I even see this now when I visit Dockerhub. How did you determine that 1.10.1 was the latest version? Is there a tag that I'm not seeing? Is there maybe a docker command I can use to query for the lastest versions of base images?
@oprwiz7813
@oprwiz7813 2 года назад
If you had to rebuild your lab from scratch using the hardware you have. In what order would you rebuild each server and why
@oprwiz7813
@oprwiz7813 2 года назад
I’ve had my homelab for about a year. But it’s undergone so many changes. There was no organization. 4 pi nodes started it. To now 2 gen8 hp proliant that first ram esx to now running proxmox. No real goal except to learn. But I’ve thought of tearing it down. And using ansible to rebuild it all. I guess does ansible start or pfsense or auth or duplicati or docker start it all. With the idea, if I had a worse case scenario happen, what could I do now to make it easier to build using latest software or do you just backup/restore? I like the idea of running scripts to fire off new builds. Maybe make it modular and not one depending on another server
@ChristopherCordero-up7xq
@ChristopherCordero-up7xq Год назад
bro what camera did you use??????
@eduardodasilvaramos
@eduardodasilvaramos 2 года назад
Tnks!
@varun1033
@varun1033 14 дней назад
Bro my localhost is stuck on nginx welcome page who do I redirect it to index.html please somebody help.😥😥😥
@SirRandallDoesStuff
@SirRandallDoesStuff 2 года назад
Love your channel but I hate your terminal setup. While this might work for you and I can follow what you are doing but most people won't. Having a profile with the full path will be very helpful for people following along. This is just constructive criticism. Your channel is amazing and learned a lot from it.
@TechnoTim
@TechnoTim 2 года назад
Thanks for the feedback! Not sure I understand what you mean about having a profile with the path and how most people won’t be able to follow? These are just docker commands.
@jackmurak
@jackmurak Год назад
@@TechnoTim I get path errors (others below did too). It might be windows vs. linux issue for me?
@michalvirba6973
@michalvirba6973 2 года назад
Hello, thanks for this super video, it's really helpful. I found a mistake in the documentation for the listing of docker images, isn't it "docker images" instead of "docker ls"?
@TechnoTim
@TechnoTim 2 года назад
It is, thank you! i will fix it in the docs!
@DubbinTV
@DubbinTV 7 месяцев назад
Tech noob here, I'm having trouble with finding the page he was on with the CLI
@ryanmalone2681
@ryanmalone2681 3 месяца назад
I don't understand how you even created the yaml file at the beginning as there is no option when I downloaded VS Code, how to got it to the server from your client, and how to converted the yaml file into a Docker file. Missed a lot of steps there.
@TechnoTim
@TechnoTim 3 месяца назад
Just do file>new text file then name it “Dockerfile”
@nellieetnini77
@nellieetnini77 Год назад
hi, my text in the html file is not showing on web browser after port mapping....need help asap please
@leeranaldo9979
@leeranaldo9979 Год назад
Had the same problem. In that first row in your dockerfile remove everything after FROM nginx and it should work.
Далее
The intro to Docker I wish I had when I started
18:27
Просмотров 113 тыс.
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
Docker Tutorial for Beginners
50:38
Просмотров 39 тыс.
Learning Docker // Getting started!
35:56
Просмотров 109 тыс.
You should be using Proxmox Backup Server
10:38
Просмотров 12 тыс.
Before I do anything on Proxmox, I do this first...
23:04
100+ Docker Concepts you Need to Know
8:28
Просмотров 975 тыс.
build your own cloud
47:13
Просмотров 1,9 млн
Using docker in unusual ways
12:58
Просмотров 449 тыс.