My latest course for just $9.99. Ace your front end interviews with the '100 Front End Interview Questions Challenge'!!! www.udemy.com/100-front-end-interview-questions-challenge/?couponCode=CODINGGOD
Hello everyone, sorry for the pronunciation issues and messiness on my part, I'm a self taught developer and it seems to have shown here haha. I'm happy most of you found the video helpful. Please continue to support CodingTutorials360!
Please provide complete tutorial for docker with live example as you did on this one I have been learning docker online from several schools but haven't really grasped much as i did from this clip just in 20 minutes. Thank you
Thnaks buddy; Im a self taught programmer and im dyslexic in English which makies reading and writing a pain; Emmet is great for Development an you tube my best friend so thanks a mill cheers
The best docker tutorial. explain everything a first learner needs to know in 20 minutes. It's very simple unlike other tutorials that says a lot of sophisticated crap.
A lot of haters in the comments. A couple of pronunciation issues but I can look past that because I'm now able to do some easy Docker things after 20 minutes. Keep posting these.
Sean Ebeling Nobody cares about your opinion + I didn’t see any haters comments stop playing the black sheep role and run while you are not being chased k ....
A lot of good info. Been working with Docker for months, of course, in 20 minutes, there is only so much info. However, this is something I should've watched towards the start of my Docker journey. Docker-compose may have been out of scope for this video, but still great!
at around 12:10, On my machine, when it complained when the file was named .Dockerfile, I think it expects the file to be named just 'Dockerfile', then you don't have to manually specify where it is. I was following along and renaming the file worked for me.
There is no bug at 6:30. It is waiting for input to the original command prompt when you pressed ctrl p q, and when you press return you get another command prompt.
Great tutorial! A couple of notes for anyone following this today... To use the node.js example exactly as shown, when creating the .Docker file use the older version of node (FROM node:4-onbuild). When mounting a volume using the latest version of docker on Windows do not use Unix syntax as suggested, use Windows directory syntax (eg: docker run -it -p 1337:80 -v C:\Users\userdir\hs:/usr/src/app --name hi hello-system).
6:35 It's not really a bug. When you attach yourself to the container, the "root@blahblahblah :/#" text has already been printed right before you left it. The container keeps running in the background independently of whether or not you're attached, and when you attach, it has no reason to print the text again. When you press enter, you put in a newline so it prints the text again.
So great! Compressed just right for anyone who has the sufficient basics to approach Docker (imho). Takes talent to produce something like this, thank you! I am sure, in coming videos, with time and support, you will hone any minor things, everyone is bitching about in the comments.
Couple things can help you along with this video: 1. If you have Windows 10 home, you don't have Hyper-v. But you're all good, just install the Docker Toolbox (for windows), rather than the Docker community or enterprise editions. Docker toolbox is available on Docker's website. Everything works fine. 2. Once installed, fire up Docker Quickstart shortcut that the Docker Toolbox installs. It will take a few to install Docker on your machine. 3. If you get the error about your computer not supporting Virtualization, you may have to restart your computer & enter the Bios. Enable virtualization in there. Your processor must support virtualization. (see below) *If you have an INTEL processor, check if it supports virtualization here: downloadcenter.intel.com/download/7838 *If you have an AMD processor, check if it supports virtualization here: download.amd.com/techdownloads/AMD-VwithRVI_Hyper-V_CompatibilityUtility.zip
Thanks for this 101. I was suggested looking into Docker after moving from OSX to windows and having to use CMD for MongoDB. I’m an avid dev that is still learning so getting a nice starter of this Was helpful. Thanks!
at around 12:05 It seems docker was trying to find "Dockerfile" (without the dot), but you named it ".Dockerfile". Worked once I renamed my file without the dot. Your welcome
When attaching to the instance, I don’t think the lack of display without input is a bug. That’s how Linux is when you attach to a tty device, it doesn’t really know you attached like an ssh session does and doesn’t necessarily have any output unless you provide input.
When you attached back to your Ubuntu environment, the reason it didn't print the prompt is because you were simply returning to the previous state. The previous state had already printed the prompt and was awaiting input. I'd assume you could force a reprint of the prompt explicitly in the command you used to reattach. I don't see this as a bug. I see it as your computing environment doing exactly what you tell it to, instead of assuming it knows what you want, like users of Windows are used to.
Nice tutorial. 6:22 the prompt string is already displayed for you do ctrl+p+q. so after reattaching to it the shell just waits for next command. it didn't show the prompt string until you press enter. the default file name is "Dockerfile" not ".Dockerfile" anyways a good tutorial.
around 13:30 you made the mistake of having a dot in your Dockerfile name. Dockerfiles do not have a dot in their names. Along with that, running inside a VM is not the problem. That is not how VM's work by magically breaking commands of programs unless it's an unsupported OS.
You did a great job on this video! Can you tell us what is downloaded onto your portfolio image? It was almost a GB of data, what does it run? I'm guessing you installed angular, JQuery, Node, Ubuntu, and some other dependencies I noticed
Hi Thomas That was really helpful! @ 14:04 you provide argument as --name hi hello-system (what is 'hi' there?) In my opinion: Hello-System is the image you downloaded from hub and 'hi' is the container where you're hosting the image hello-system? And also can you please let me know what is the practical uses of Docker? and can you please do a video on Kubernetes?
first build failed 'cause you called your file '.Dockerfile', while docker looks for 'Dockerfile' (without dot). If your build file is not in the folder you are currently in or/and it's name is not 'Dockerfile', you must provide path to it, thats why you was forced to add '-f path/to/.Dockerfile'
I am not understanding Like are you on a Windows 10 pro host machine and you installed docker on a virtual environment in vbox or vmare? Sorry am i tottaly confused lost right from the start Lisa
Thankyou for ur efforts. I've few doubts in docker, could you please help me. How to share docker images What docker load do How to tack backup docker container Thanks in advance.
Probably a stupid question but, why would a dev use a docker container? How is that different from committing to git and have teammates pull changes? Also, a build system for a web app would publish the compiled output files without carrying around the entire source. How does this differ from a continuous integration environment or, how does it help and what does it solve? Basically, what is the point? BTW, very good video!
Hey, realise this was a few weeks ago, so apologies if you've already found an answer to this. Docker is more than just web code, you could build out some impressive apps with containerisation, one of the main benefits would be in a DevOps environment where you're looking for regular small updates and want a really quick way of getting them out into the wild rather than waiting for a major release to go through a bunch of infra teams and finally making it to the wild. Docker/Containerisation is a smart way of breaking your infrastructure into manageable and reusable chunks that can be deployed rapidly allowing for quick changes and massive scalability.
so more about running docker on windows ( 8.1 my case), it's pain ! I couldnt make it with -v part and synchronizing files whatever I tried - always some kind of error, however, I am still stuck on linux on making live updates when file is saved. As far as I am in the topic it seems like it has sth to do with linux way of file editing, maybe I will find a solution. But seriously guys, I do not recommend having fun with Docker on not recommended Windows OS versions it's pain :D
I understood completely until you started to sync to local file system. you're running on ubuntu vm on windows then syncing back to windows file system is where it got complicated. Don't get me wrong, I've been running VMs on windows and linux for at least 10 years and understand the cross filesystem mounts, port configs, etc. I guess most people develop this way, win10/linux vm/dockerubuntu. I started my docker intro with your video and thanks for that. I need find a similar intro that takes windows out the picture, ie linux/docker linux only. ps. didn't give a thumbs down, you did great and I got the intro I needed to get started.
I'm getting this error on windows. " Docker Toolbox\docker.exe: Error response from daemon: Get registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)." Can you please help ?
docker build does not see the path and i have tried everything! does anyone know how to fix this? to answer some initial questions yes, I am in the proper directory I am in the hs folder. No, there is no .txt extension on my Dockerfile, and I named it simply Dockerfile as the documentation say to
A lot of haters here... I bet if those people complaining about pronunciation were SO smart, they wouldn't be here watching a tutorial... Btw, great video! This is the best introduction to Docker I've found :-)
Can you explain why the live file changes appear on your work environment at the end, but not in the 'hi' test app? I'm finding that I need to restart my docker container for changes to appear on the browser.
They are protected or privileged ports in the sense that on Unix systems only the root user can bind to ports below 1024. Linux also has "capabilities" allowing a non root user to have this privilege as well, see CAP_NET_BIND_SERVICE man7.org/linux/man-pages/man7/capabilities.7.html This kind of restriction does not exist on Windows afaik.
I am not able to access nor localhost:1337 nor any other ports. I tried changing internal port from 80 to several other options (1337, 40000) (changed it in index.js, Dockerfile and rebuilt image) but still no success=(
Impossible to learn this thing in 20 minutes. I'm here already completing like 5 hours trying to run a python script and all get is a message "can't open file no such file or directory". is explicit what's happening, but it's not explicit where I should be changing to make the file be found.
are you talking about 14:08 ? if so, in the Dockerfile make sure you have "-onbuild" on the end of the FROM line (FROM node:6-onbuild) ... i just had "FROM node:6" and landed on a prompt ... adding the "-onbuild" fixed it
Lots of instructions, but lacks context. For example, the WordPress container contains PHP? Has not been mentioned. Additionally, why does the WordPress container not contain MySQL? You see how a high level intro explaining the why's would be helpful.
This video is such a great service. I also know not to make fun of folks for their pronunciation (because it means they learned the word only by reading!). That said, if the host is going to say "Voila!" as often as this, I must insist that he say "Vwa-La" instead. ;-)
I don't think correcting incorrect pronunciation is making fun of someone. He said "pseudo" wrong and someone told him the correct way to say it. That's being helpful. And I also paused the video, checked comments for said correction, and will now return to the video.
My latest course for just $9.99. Ace your front end interviews with the '100 Front End Interview Questions Challenge'!!!
www.udemy.com/100-front-end-interview-questions-challenge/?couponCode=CODINGGOD
I don't understand why there's an ad every 15 seconds. Its hard to watch.
12:06 The default build file docker looks for is called "Dockerfile", not ".Dockerfile"
Hello everyone, sorry for the pronunciation issues and messiness on my part, I'm a self taught developer and it seems to have shown here haha. I'm happy most of you found the video helpful. Please continue to support CodingTutorials360!
Please provide complete tutorial for docker with live example as you did on this one I have been learning docker online from several schools but haven't really grasped much as i did from this clip just in 20 minutes. Thank you
Thanks for a great concide guide
Thnaks buddy; Im a self taught programmer and im dyslexic in English which makies reading and writing a pain; Emmet is great for Development an you tube my best friend so thanks a mill cheers
The best docker tutorial. explain everything a first learner needs to know in 20 minutes. It's very simple unlike other tutorials that says a lot of sophisticated crap.
A lot of haters in the comments. A couple of pronunciation issues but I can look past that because I'm now able to do some easy Docker things after 20 minutes. Keep posting these.
Sean Ebeling
Nobody cares about your opinion
+
I didn’t see any haters comments stop playing the black sheep role and run while you are not being chased k ....
Ko- Jap Ltda
A lot of good info. Been working with Docker for months, of course, in 20 minutes, there is only so much info. However, this is something I should've watched towards the start of my Docker journey. Docker-compose may have been out of scope for this video, but still great!
at around 12:10, On my machine, when it complained when the file was named .Dockerfile, I think it expects the file to be named just 'Dockerfile', then you don't have to manually specify where it is. I was following along and renaming the file worked for me.
Same here. Thanks Jeff!
Exactly. He needed to specify the filename because ".Dockerfile" is not the default name, "Dockerfile" is. :)
Yeah, I found that problem too. That’s why he had to specify the exact url😂
I think he maybe got confused with 'Dockerfile' and the '.dockerignore' file
There is no bug at 6:30. It is waiting for input to the original command prompt when you pressed ctrl p q, and when you press return you get another command prompt.
15:00 You can pass -a argument to docker ps like this
docker ps -a, and it will show even inactive/stopped containers
The best docker tutorial on TH-cam... And he makes it look so easy
Great tutorial! A couple of notes for anyone following this today... To use the node.js example exactly as shown, when creating the .Docker file use the older version of node (FROM node:4-onbuild). When mounting a volume using the latest version of docker on Windows do not use Unix syntax as suggested, use Windows directory syntax (eg: docker run -it -p 1337:80 -v C:\Users\userdir\hs:/usr/src/app --name hi hello-system).
Love the tutorial. Best 20 minutes learning docker. Thanks Dylan
6:35 It's not really a bug. When you attach yourself to the container, the "root@blahblahblah :/#" text has already been printed right before you left it. The container keeps running in the background independently of whether or not you're attached, and when you attach, it has no reason to print the text again. When you press enter, you put in a newline so it prints the text again.
So great! Compressed just right for anyone who has the sufficient basics to approach Docker (imho). Takes talent to produce something like this, thank you! I am sure, in coming videos, with time and support, you will hone any minor things, everyone is bitching about in the comments.
Couple things can help you along with this video:
1. If you have Windows 10 home, you don't have Hyper-v. But you're all good, just install the Docker Toolbox (for windows), rather than the Docker community or enterprise editions. Docker toolbox is available on Docker's website. Everything works fine.
2. Once installed, fire up Docker Quickstart shortcut that the Docker Toolbox installs. It will take a few to install Docker on your machine.
3. If you get the error about your computer not supporting Virtualization, you may have to restart your computer & enter the Bios. Enable virtualization in there. Your processor must support virtualization. (see below)
*If you have an INTEL processor, check if it supports virtualization here: downloadcenter.intel.com/download/7838
*If you have an AMD processor, check if it supports virtualization here: download.amd.com/techdownloads/AMD-VwithRVI_Hyper-V_CompatibilityUtility.zip
Very informative... thank you for taking the time to produce this video. Loved the 1337 port, I rarely see that like I used to back in the 90's.
This tutorial is spotless.
around 14:08, on my system it didn't work on localhost:1337. What is the issue? Did he skiped something?
Thanks for this 101. I was suggested looking into Docker after moving from OSX to windows and having to use CMD for MongoDB. I’m an avid dev that is still learning so getting a nice starter of this Was helpful. Thanks!
Although this tutorial is all jumbled up, but gotta admit of all the tutorials I saw this is one of the most useful one.
at around 12:05 It seems docker was trying to find "Dockerfile" (without the dot), but you named it ".Dockerfile". Worked once I renamed my file without the dot. Your welcome
I've the same remark.
When attaching to the instance, I don’t think the lack of display without input is a bug. That’s how Linux is when you attach to a tty device, it doesn’t really know you attached like an ssh session does and doesn’t necessarily have any output unless you provide input.
When you attached back to your Ubuntu environment, the reason it didn't print the prompt is because you were simply returning to the previous state. The previous state had already printed the prompt and was awaiting input. I'd assume you could force a reprint of the prompt explicitly in the command you used to reattach. I don't see this as a bug. I see it as your computing environment doing exactly what you tell it to, instead of assuming it knows what you want, like users of Windows are used to.
Nice tutorial.
6:22 the prompt string is already displayed for you do ctrl+p+q. so after reattaching to it the shell just waits for next command. it didn't show the prompt string until you press enter.
the default file name is "Dockerfile" not ".Dockerfile"
anyways a good tutorial.
around 13:30 you made the mistake of having a dot in your Dockerfile name. Dockerfiles do not have a dot in their names. Along with that, running inside a VM is not the problem. That is not how VM's work by magically breaking commands of programs unless it's an unsupported OS.
best docker tutorial I have seen around, great job! thank you!
You did a great job on this video! Can you tell us what is downloaded onto your portfolio image? It was almost a GB of data, what does it run? I'm guessing you installed angular, JQuery, Node, Ubuntu, and some other dependencies I noticed
Hi Thomas
That was really helpful!
@ 14:04 you provide argument as --name hi hello-system (what is 'hi' there?)
In my opinion: Hello-System is the image you downloaded from hub and 'hi' is the container where you're hosting the image hello-system?
And also can you please let me know what is the practical uses of Docker?
and can you please do a video on Kubernetes?
Great tutorial, a real time saver. Thank you.
Great introduction to using Docker on Windows and in your development workflow! Thank you for sharing it.
thank you thomas...short and precise vid...I've got a pictures of what Docker is
first build failed 'cause you called your file '.Dockerfile', while docker looks for 'Dockerfile' (without dot). If your build file is not in the folder you are currently in or/and it's name is not 'Dockerfile', you must provide path to it, thats why you was forced to add '-f path/to/.Dockerfile'
is docker suitable if I want to run multiple operating systems on a NAS?
Good video, thanks.
Thank you! This is a very useful tutorial!
I am not understanding
Like are you on a Windows 10 pro host machine and you installed docker on a virtual environment in vbox or vmare? Sorry am i tottaly confused lost right from the start Lisa
well done. ignore any haters
Thank you Dylan for this tutorial
Good one and thank you for sharing!
Nice tutorial @Spaceman Thomas! Thank you for sharing.
Great Tutorial! Now I get more about Docker :)
If we host app on docker, the data of app will be persistent after the docker is down or it will be flushed as soon as docker is off
Amazing video, thanks!!
Thank you for saving me precious time.
Thankyou for ur efforts.
I've few doubts in docker, could you please help me.
How to share docker images
What docker load do
How to tack backup docker container
Thanks in advance.
Hi,
2:39 Where to add this, I am using VMware work station.
Very helpful, Thank you !
Probably a stupid question but, why would a dev use a docker container? How is that different from committing to git and have teammates pull changes? Also, a build system for a web app would publish the compiled output files without carrying around the entire source. How does this differ from a continuous integration environment or, how does it help and what does it solve? Basically, what is the point? BTW, very good video!
Hey, realise this was a few weeks ago, so apologies if you've already found an answer to this. Docker is more than just web code, you could build out some impressive apps with containerisation, one of the main benefits would be in a DevOps environment where you're looking for regular small updates and want a really quick way of getting them out into the wild rather than waiting for a major release to go through a bunch of infra teams and finally making it to the wild.
Docker/Containerisation is a smart way of breaking your infrastructure into manageable and reusable chunks that can be deployed rapidly allowing for quick changes and massive scalability.
ii . to open an explorer at the current directory in powershell ;)
Thank for the tutorial.
Thank you Thomas! Very nice and to the point! Pleasure was mine :-)
Great video! Thank you
What theme are you using with Atom?
docker ps -a
lists all containers, you can simply remove like it was said in the video by running:
> docker rm $name_of_container$
so more about running docker on windows ( 8.1 my case), it's pain !
I couldnt make it with -v part and synchronizing files whatever I tried - always some kind of error, however, I am still stuck on linux on making live updates when file is saved. As far as I am in the topic it seems like it has sth to do with linux way of file editing, maybe I will find a solution.
But seriously guys, I do not recommend having fun with Docker on not recommended Windows OS versions it's pain :D
I understood completely until you started to sync to local file system. you're running on ubuntu vm on windows then syncing back to windows file system is where it got complicated. Don't get me wrong, I've been running VMs on windows and linux for at least 10 years and understand the cross filesystem mounts, port configs, etc. I guess most people develop this way, win10/linux vm/dockerubuntu. I started my docker intro with your video and thanks for that. I need find a similar intro that takes windows out the picture, ie linux/docker linux only. ps. didn't give a thumbs down, you did great and I got the intro I needed to get started.
around 14:08, on my system it didn't work on localhost:1337. What is the issue? Did he skiped something?
Most of the systems protect 1337. You may need admin permissions to use it
Very helpful. Thanks
Good intro, nice walk-thru.
Good teaching!
great tutorial !!!
did you skip installing git in the container?
nice tutorial.
I'm getting this error on windows. " Docker Toolbox\docker.exe: Error response from daemon: Get registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)." Can you please help ?
docker build does not see the path and i have tried everything! does anyone know how to fix this? to answer some initial questions yes, I am in the proper directory I am in the hs folder. No, there is no .txt extension on my Dockerfile, and I named it simply Dockerfile as the documentation say to
Save and use the ".Dockerfile" as just "Dockerfile"
Is there a way to cache dependencies so that you're not downloading them everytime you build your Docker image?
*And wallah.*
(Seriously though. Good tutorial. Thank you.)
Thanks mate.
A lot of haters here... I bet if those people complaining about pronunciation were SO smart, they wouldn't be here watching a tutorial...
Btw, great video! This is the best introduction to Docker I've found :-)
The ability to know how words are pronounced and the ability to code are mutually exclusive, as we can see well here.
Awesome thomas...
Good job!
you should try docker build -t name ./
This is because you are typing the commands inside a powershell and not a command prompt
How the hell to dockerize not node.js but en entire php / Mysql webproject?
Can you explain why the live file changes appear on your work environment at the end, but not in the 'hi' test app? I'm finding that I need to restart my docker container for changes to appear on the browser.
the same question
I guess you don't know how to use node.js. node.js only reads the js file once. so changes to the file won't do anything until node is restarted
"80 is a protected port" = no. There are no protected ports. There are a few reserved ones, but "protected ports" don't exist.
They are protected or privileged ports in the sense that on Unix systems only the root user can bind to ports below 1024. Linux also has "capabilities" allowing a non root user to have this privilege as well, see CAP_NET_BIND_SERVICE man7.org/linux/man-pages/man7/capabilities.7.html This kind of restriction does not exist on Windows afaik.
Good Job Bro
good stuff
I am not able to access nor localhost:1337 nor any other ports. I tried changing internal port from 80 to several other options (1337, 40000) (changed it in index.js, Dockerfile and rebuilt image) but still no success=(
Actually, this is known docker f*ck up, it can be helpful for those using DockerToolbox on Windows github.com/docker/for-win/issues/204
docker: Error response from daemon: driver failed programming external connectivity on endpoint sad_sanderson (with angular project)
Nice, Thank you from Iran
Impossible to learn this thing in 20 minutes. I'm here already completing like 5 hours trying to run a python script and all get is a message "can't open file no such file or directory". is explicit what's happening, but it's not explicit where I should be changing to make the file be found.
Have you correctly mapped your volume ?
It's 50 MB compressed.
how dare you remove clever_shannon
swaydo and earl have entered the chat.
can anyone give me a working video for docker with angular 8 ?
run command is not working for me..can u help to get this..??
are you talking about 14:08 ? if so, in the Dockerfile make sure you have "-onbuild" on the end of the FROM line (FROM node:6-onbuild) ... i just had "FROM node:6" and landed on a prompt ... adding the "-onbuild" fixed it
did you just say "earl" for url
Why /usr/src/app?
cause stupid :onbuild tosses it. See github.com/nodejs/docker-node/blob/master/8/onbuild/Dockerfile and run away. :onbuild is deprecated.
why in ubuntu you can run docker ps ??
ctrL+ (p+q) and you will return to docker without stopping ubuntu
Its the first time I've heard URL referred to as 'earl' :D
Less ads man, we aren’t here to make you money
Then don’t be here lol
if it was possible, i would give 10 likes for this video
nice video
Docker run -it ubuntu is not working
Bro, why are you on a Windows box?...
... its pronounced "Voila!"
wollah!
Nice video :)
FYI Windows ships natively with Ubuntu Bash for a while now, so not that crazy ;)
Lots of instructions, but lacks context. For example, the WordPress container contains PHP? Has not been mentioned. Additionally, why does the WordPress container not contain MySQL? You see how a high level intro explaining the why's would be helpful.
looks pretty complicated : what is the real value of this thing ? another guru oriented fashion ?
This might answer some of your questions:
dzone.com/articles/top-10-benefits-of-using-docker
fyi - Pseudo is pronounced "sue-doe
i paused the video, made sure someone commented on his pronunciation of pseudo, found it, un-paused and continued
This video is such a great service. I also know not to make fun of folks for their pronunciation (because it means they learned the word only by reading!).
That said, if the host is going to say "Voila!" as often as this, I must insist that he say "Vwa-La" instead. ;-)
I don't think correcting incorrect pronunciation is making fun of someone. He said "pseudo" wrong and someone told him the correct way to say it. That's being helpful. And I also paused the video, checked comments for said correction, and will now return to the video.
Bill Ahern here's an interview with the person who named sudo (sue doo).
Makes my ears bleed.
th-cam.com/video/LaAwl3HN5ds/w-d-xo.html
Didn't even watch the video as it doesn't apply to me but "syoudoh" - en.oxforddictionaries.com/definition/pseudo
too fast to understand. Would have been better if gone through the architecture first. May be i go through architecture first and come back again.
swaydo!