In this video we will start to explore docker by talking about the benefits of Docker, looking at commands to work with containers and images, the Dockerfile and more
Sponsor:
DevMountain Bootcamp – https://goo.gl/6q0dEa
Docker Help Gist:
https://gist.github.com/bradtraversy/89fad226dc058a41b596d586022a9bd3
š Become a Patron: Show support & get perks!
http://www.patreon.com/traversymedia
Website & Udemy Courses
http://www.traversymedia.com
Follow Traversy Media:
https://www.facebook.com/traversymedia
Tweets by traversymedia
https://www.instagram.com/traversymedia
source
There are 2 videos right now, this and the Node/Mongo setup. Let me know of any other Docker tutorials you would like added to the series as far as environment setup, etc (LAMP, WordPress, Django, etc)
I'm following this in 2022. Thank you Brad.
why do you have to do that every video?? you make us reach to the mid and then you run away?? you just run an html file that we don't now where it directory??
in what directory are you storing the html file???
Amazing
I am lamen to networking concepts and docker… I would like to know how we can find port numbers for nginx, jenkins etc…
Is port number we are using above is specifically for docker or its generalized port number for nginx
Best docker introduction video I have watched sor far.
So if some package doesnt exist on windows (say some npm package that only works on linux), with a docker container inside windows, it will now work without a VM running linux? That doesnt make sense.
Thank you very much! You showed that everything that I confused to understand these days
Really Great video, can we have a video about packaging a laravel project with docker soon please
This is an excellent tutorial, thank you so much for making this. Before this I had only a very vague idea as to what Docker is; I always just used VM's to do what I needed to do, but now I can see why people prefer Docker over VM's.
awesome
Is Docker beneficial or overkill for developing WordPress sites that all end up on the same server?
This was incredibly helpful and valuable, thank you. I may keep you on x2 speed and pause to google questions you answer 2 minutes later but you're the best in the biz. I couldn't even figure out how to phrase a google question of editing files in a docker and I didn't get any results, then I gave up and resumed your vid and you're like "I'm sure you guys are wondering how to edit files in the docker, you can actually bash in".
Besides application deployment I use Docker containers to run local applications without "polluting" the host computer system. For example, I run Python, pip, and pipenv as separate containers; a shell script of the same name as the native application, say python3, containing the appropriate docker run command is used to launch these containerized applications. With the transient option (–rm) these container instances fully mimic a natively-installed application. By using ENTRYPOINT in the Dockerfile, these containerized applications are locked down. Why? This approach makes it easier to reproduce the development environment, in this case, regardless of which computer system I am using – equally useful when setting up a new computer, a virtual private server (VPS), or even a new local virtual machine. Docker combined with Docker Compose has been useful when bundling separate applications each in their own container, for instance, a text editor plus Python, pip, and pipenv.
${PWD} or $(pwd) is print working directory.
Bind Mount onto Windows 10. Done in PowerShell
docker container run -d -p 8080:80 -v C:Desktopdocker-test:/usr/share/nginx/html –name nginx-website-windows nginx
Bind Mount onto Ubuntu. Done in Ubuntu
[email protected]:/test$ sudo docker container run -d -p 8081:80 -v /test:/usr/share/nginx/html –name nginx-website-ubuntu nginx
what is that -P (publish) flag in rocker run command? 7:46
ur a legend
I stayed at home for several months after i lost my job, i felt really bad at first but a friend of mine introduced me to bernardmoore_official On ”G i counted on his service because i need to feed my kids, God's willing I made up to $14k with his guidance trading forex. i just want to appreciate him for helping smiles of joy will depart from your face Mr Bernard moore
I am trying to download windows, but CMD is requiring me to log in. not sure how to do this on CMD
Very helpful video, thank you a lot! š
Brad just doing gods work, once again…
Btw, great analogy of difference between images and containers:
Images are to containers as classes are to class instances
Only helpful if you understand that programming concept lol, but the idea is there
Hello i can mount the volume or my specific location but whenever i try to access it from browser it says 403 forbidden can any one tell me whats the permission issue. when i ls -al then the directory user and groups are being showed 1000:1000
can anyone help me with this?
You are the best in your job, thank!
thank you
You are awesome Brad, I like your videos and it is fantastic one for the docker initial understanding, you nicely explained every steps for beginner who is starting Docker.
Can you please please please make a Modern WordPress Development course using the @t stack + Tailwind? There are no good courses/tutorials on creating a custom theme that way. Just on how to set up Bedrock with Local, or on installing Sage, the things you can easily do with just the docs.
I would love to see a workflow where you create a theme from scratch using Bedrock and Sage, Trellis, or Docker for containing it, Tailwind for the frontend, and then how to deploy it to e.g. DigitalOcean. I would definitely pay full price for such a course as well.
What's the purpose of bind_module?
I understand that you can connect a folder in your container to a folder on your host machine. Which allows us to "override/add" the contents to the container folder from our host machine.
But why would someone ever need that?
21:15 Brad just read my mind
BIG BIG LIKE !!!
I searched for Docker, and scrolled down until I found Traversy Media
Really appreciate this, thanks!
${PWD} on windows (running powershell)… only way that worked for me
What is a way to open VSCode from the terminal? (command "code .")
You have time: 26.37 $ code .
Thank you
Too. Many. Ads.
The best content I've found for Docker! Thanks!!
for windows user ——– (docker container run -d -p 8080:80 -v D:dockernginxdemo:/usr/share/nginx/html –name nginx-web nginx ) $(pwd) is not going to work.
What do you do when the created docker image do not display the files hello worlds and about in the local:host 8082. I have tried both gitbash and powershell in which the later had winpty in front. The mount binding works fine when i tweaked the directory for windows but the image only shows med the welcome nginx message