Removing containers section starting at 31:38: If you're trying to remove all containers at once with the rm command in Windows cmd, and get "unknown flag -a" errors, you can try instead the "docker container prune" command which removes unused containers. Prune also works for unused "image", "network", or "volume", or docker system prune to do the lot at once. The docker rm $(docker ps -aq) might also work in powershell terminal or another shell if you have one installed but cmd would not let me use docker rm $(docker ps -aq).
The code at 44:20 is the following: docker ps --format="ID\t{{.ID}} NAME\t{{.Names}} IMAGE\t{{.Image}} PORTS\t{{.Ports}} COMMAND\t{{.Command}} CREATED\t{{.CreatedAt}} STATUS\t{{.Status}} "
1.45 hrs - The package.json file is downloaded into the folder by the 'npm init' command. 'npm install' command is used to unparse package.json and install the dependencies that are mentioned in the json file. The 'npm install express --save' command adds the package-lock.json file and Node folder and installs the dependencies specified in .json files.
Have been looking for a docker video for a long time, saw this upload this morning, and man this was productive. Great Explanation and concise examples. Now, I have to watch the kubes section.
Thanks for all the effort Great course .. and great learning experience coding with you guys! Nice detail in the docker part.. and I am completely new to k8s and found it really useful to know concepts on services, configmap and secrets. K8s content could be more wrt docker content. Also, pls update the video description with git resources. Thanks again.
Thank you!! Also if getting some error about lower case letters in windows. Put everything for -v in quotations for example: -v "/$(pwd):/usr/share/nginx/html:ro"
Great content and great teaching skills, thanks for sharing! Just an head up (minutes 23-24): stopping a container on windows, even without starting it with -d flag, did not stop the container daemon. I had to execute "docker stop [container id]" in order to really stop it.
If you got this 403 error, means that Nginx does not find the index.html file, point the volumen to the dist folder inside the Start Bootstrap - Grayscale directory
For anyone getting 403 error, you need to create the container in the dist directory of the Bootstrap project, not the website directory. Follow the same scripts in the dist directory and it should work
Docker course is really good, I was able to understand every concept and have a hands-on experience. But K8s part is not that much good though there is scope for improvement, at some places the instructor got confused and was unclear at some places.
Also docker images do not have a version. They only have a tag which is a string. So if you pull the alpine version you actually are hoping you are pulling the latest, but it could be any version.
You two are modern gods. Thank you so much for this. Thank you freecodecamp too for sharing, I can always trust anything I watch from their channel will be amazing content. Subscribed to both channels :) Keep it up
Thanks for this video. It helps a lot. Now, how do we deploy our app to a production server on a public domain/IP? Do we need to use another tool such as Jenkins, etc? I have a little flask app running locally using docker compose. How do I go about making changes locally and deploying those changes to my web host server so the world can see it and use it? Thank you for your great tutorial again.
Launch PowerShell. On it run Format the containers listing > docker ps --format="ID\t{{.ID}} NAME\t{{.Names}} IMAGE\t{{.Image}} PORTS\t{{.Ports}} COMMAND\t{{.Command}} CREATED\t{{.CreatedAt}} STATUS\t{{.Status}} ""ID\t{{.ID}} NAME\t{{.Names}} IMAGE\t{{.Image}} PORTS\t{{.Ports}} COMMAND\t{{.Command}} CREATED\t{{.CreatedAt}} STATUS\t{{.Status}} " PowerSheel set environment variable > $env:FORMAT=”ID\t{{.ID}} NAME\t{{.Names}} IMAGE\t{{.Image}} PORTS\t{{.Ports}} COMMAND\t{{.Command}} CREATED\t{{.CreatedAt}} STATUS\t{{.Status}} ""ID\t{{.ID}} NAME\t{{.Names}} IMAGE\t{{.Image}} PORTS\t{{.Ports}} COMMAND\t{{.Command}} CREATED\t{{.CreatedAt}} STATUS\t{{.Status}} " PowerSheel list all or one variable > dir env: > dir env:FORMAT > $env:FORMAT List containers based on a variable holding the format > docker ps --format=$($env:FORMAT)
@Nana Earlier in your presentation you used Deployment for stateless applications and StatefulSet for stateful (like DB).. What is the reason you used a deployment for MongoDB ? I'd expect Statefulset
If you run into "The connection to the server localhost:8080 was refused - did you specify the right host or port?" Be sure to execute "minikube start" :D
It was a bit weird. In all these tutorials and courses I've seen on this channel, this is the first one that the person announces their religion in the beginning. PS: not that there is anything wrong with it
@@felicytatomaszewska so he should die because he feared that he could not understand the content of a video he wanted to watch... How concidered of you
First of all (Umbar Power) that isn't a nice thing to say. Secondly, some people really think Muslims cannot speak English? There are like 1.8 billion Muslims, you can find in almost every country. So, I'm not surprised at all.
such a sneaky way to creep in with some prejudice. andrey, take care of your heart's physical fitness and clear your mind of prejudice. this is a good free resource and amigos' content is on point.
Docker rm should remove the container Rm command usually used to delete So if we deleted the container don't we need to install the docker image then run the container? Means rm just removes the image from the cli but the image will be in background consuming disk space? I'm i correct?
Removing containers section starting at 31:38: If you're trying to remove all containers at once with the rm command in Windows cmd, and get "unknown flag -a" errors, you can try instead the "docker container prune" command which removes unused containers. Prune also works for unused "image", "network", or "volume", or docker system prune to do the lot at once. The docker rm $(docker ps -aq) might also work in powershell terminal or another shell if you have one installed but cmd would not let me use docker rm $(docker ps -aq).
The solution for me for this was to install WSL version 2.
yeah i am facing the same things
for /f "tokens=*" %i in ('docker ps -a -q') do docker rm -f %i
Use this command instead it works
The code at 44:20 is the following:
docker ps --format="ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
"
You're the best
What a guy 🍻
thanks bro...
was looking for all over the place ! thanks! lol
thanks man
finally finished after three useful weekends.
Thanks for the video. :) By the way: I think "LTS" doesn't stand for "latest", but for "long term support".
You are correct
Yep. True.
LOL did they say LTS as latest? Hahahaha
1 hour in and im very excited for whats next . this video is awesome and goes through every step so you can really understand the context of things
Gosh, just what I was looking for. Thank you so much!!
Thanks for giving such valuable content for free!
Thx so much for your lessons
I really enjoy it and learn a lot
Thx Nelson and Nana
1.45 hrs - The package.json file is downloaded into the folder by the 'npm init' command.
'npm install' command is used to unparse package.json and install the dependencies that are mentioned in the json file.
The 'npm install express --save' command adds the package-lock.json file and Node folder and installs the dependencies specified in .json files.
1:45:00
Have been looking for a docker video for a long time, saw this upload this morning, and man this was productive. Great Explanation and concise examples. Now, I have to watch the kubes section.
Nelson is a great teacher. Thanks for the content.
Learned kubernetes from here! awesome
This was sooo good, I was hooked when I started, but I'm surprised there were nothing about Docker Compose. But anyway thanks for the content
Thanks to the both of you, that was brillantly explained.
The best docker tutorial I found. Thanks man,
I went ahead and smashed the like button even if I am into dev-op stuff. Great energy... love it!
Thanks a million, both of you. Impressive!!!
Awesome and very sympaty .Thank I just luamched the study !!!!
Thanks for all the effort Great course .. and great learning experience coding with you guys! Nice detail in the docker part.. and I am completely new to k8s and found it really useful to know concepts on services, configmap and secrets. K8s content could be more wrt docker content. Also, pls update the video description with git resources. Thanks again.
Thank you so much for this course.
Thank you for this wonderful course 🙌🙌
great,one night four hours finish the course. I would try to review again.really thank you very much.
Great course, very clear and easy to understand
This is so awesome!!! I’ve been Nana’s vídeos fan since the first watch
Dehşetül Vahşet bir seri olmuş. 4 saatin hakkını vermişsiniz.
Best clean one i ve seen so far. Good job guys loved it and learnt a lot from it. Cheers
For those who are having trouble to create the Volume in Windows: Add a '/' before $(pwd). The rest is the same, you're welcome!
Thank you!! Exactly the issue I had
I still got a 403 Forbidden when I did localhost:8080
@@bobarrack same for me
Thank you!! Also if getting some error about lower case letters in windows. Put everything for -v in quotations for example: -v "/$(pwd):/usr/share/nginx/html:ro"
Soothing voice 👏🏻👏🏻👏🏻👏🏻👏🏻
Great content and great teaching skills, thanks for sharing! Just an head up (minutes 23-24): stopping a container on windows, even without starting it with -d flag, did not stop the container daemon. I had to execute "docker stop [container id]" in order to really stop it.
Thanks a lot for this free content! Congrats on explanations!
Thanks for this great course!
Really a great course, congrats!!! I enjoy each moment, and i understand every concept. I like a lot, thanks
Nelson explained it really well Thank you mate.
HOLY MOLY!
Great content guys. Thanks a lot! :)
thanks for the big effort guys
Waalaikumsalam brother, and peace for everyone in the world from Malaysia 🇲🇾🌍✌️
🇩🇿 joined to your answer
Wonderful ..... Thank you so much for sharing this ❤❤❤❤❤
the pronunciation of "docker" is cute, thank you for the perfect course
No problem
Great course, thanks a lot!
Excellent movie for today.🔥🔥🔥
وعليكم السلام ورحمة الله وبركاته أخي
Beautiful
@@muhammadmuneebwafaie9647 yupp
@@muhammadmuneebwafaie9647 what's your name!?
@@muhammadmuneebwafaie9647 from Srinagar?
@@muhammadmuneebwafaie9647 developer? All the best.
@@muhammadmuneebwafaie9647 how are you able to watch this video if you are from Kashmir, India. Coz, Internet is Banned Over There..
Thanks a lot amigos! Felicitaciones
If you got this 403 error, means that Nginx does not find the index.html file, point the volumen to the dist folder inside the Start Bootstrap - Grayscale directory
Walikom Salam Brother, Thank you so much for great Content!
Walaikumsalam. I just started to learn docker security. Hope this helps me out. Thank you ❤
For anyone getting 403 error, you need to create the container in the dist directory of the Bootstrap project, not the website directory. Follow the same scripts in the dist directory and it should work
Thank you very much
ty! this is what i was looking for!
Awesome tutorials, thank you. :)
helpful content guys! thank you very much!
Walaikum Assalam brother! Thanks so much for this video!
That the best start for docker thanks a lot for this awesome content
وعليكم السلام ورحمة الله وبركاته
love from Bangladesh💕❤
Docker course is really good, I was able to understand every concept and have a hands-on experience. But K8s part is not that much good though there is scope for improvement, at some places the instructor got confused and was unclear at some places.
waealaykum alsalam warahmat allah wabarakatuh, Bro wish you the best
I really like this video. But LTS does not mean latest. It means Long Term Support. At 2:12:19 it shows that on the node website.
Thank you so much for this video.
Wa Alaikum Assalam Brother
Really awesome stuff but LTS does not stand for "latest". it stands for "long term support".
Really that's grate! tank you
Many Thanks!
Great session, learnt a lot 👍
OP docker 👍 thanks for information
Thanks a lot!
Amazing amazing amazing!!!
Notes
- command snippet from 44:00
docker ps --format="ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
"
- Windows commands
set FORMAT= "PASTE_HERE"
docker ps --format=%FORMAT%
docker run --name website -v %cd%:/usr/share/nginx/html:ro -d -p 8080:80 nginx
- nginx-deployment.yaml from Kubernetes instruction:
apiVersion: apps/v1 # updated this from appVersion to apiVersion
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
# specification for the deployment
spec:
replicas: 1
selector:
matchLabels:
app: nginx
# blueprint for pods
template:
metadata:
labels:
app: nginx
# specification for the pod
spec:
containers:
- name: nginx
image: nginx:1.16
ports:
- containerPort: 80
thanks a bunch
Great Content Team. Can we have a link to Presentation/Document please.
I was waiting for this..
Also docker images do not have a version. They only have a tag which is a string. So if you pull the alpine version you actually are hoping you are pulling the latest, but it could be any version.
You two are modern gods. Thank you so much for this. Thank you freecodecamp too for sharing, I can always trust anything I watch from their channel will be amazing content. Subscribed to both channels :) Keep it up
Wa'alaikumsalam, I really enjoy your lectures. Thank you Nelson and Nana
Great. At 30.11 it should be -p 8080:80 in the screenshot
SUPER !!!!!!
Ahoy, this is a great educational and most practical demonstration of Docker and Kubernetes. Can you also do this for Singularity. Thank you :D
Thanks for this video. It helps a lot. Now, how do we deploy our app to a production server on a public domain/IP? Do we need to use another tool such as Jenkins, etc? I have a little flask app running locally using docker compose. How do I go about making changes locally and deploying those changes to my web host server so the world can see it and use it? Thank you for your great tutorial again.
Thanks a lot dude
This is great!
Walykum asslam wa rahamathulahi wa barakathu
Woah thanks for this!
AsssalmAlykum, very nice course. Can you please share format string you have used for formating the output for docker ps.
docker ps --format="ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
"
😂😂😂 @sslam ?? Bruh
The tutorial is perfect. I have only one comment, the docker exec command at Windows not work with /bin/sh/ but it works with only sh
Great course by both of them. Does anyone know where the K8 course is uploaded ?
It will be great if you give the alternate Windows commands too. For example the format thing doesn't work in WIndows neither the format thing.
Launch PowerShell. On it run
Format the containers listing
> docker ps --format="ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
""ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
"
PowerSheel set environment variable
> $env:FORMAT=”ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
""ID\t{{.ID}}
NAME\t{{.Names}}
IMAGE\t{{.Image}}
PORTS\t{{.Ports}}
COMMAND\t{{.Command}}
CREATED\t{{.CreatedAt}}
STATUS\t{{.Status}}
"
PowerSheel list all or one variable
> dir env:
> dir env:FORMAT
> $env:FORMAT
List containers based on a variable holding the format
> docker ps --format=$($env:FORMAT)
@@jreis78pt Thanks!
Wa Alaikum Assalam Warahmat Ullah Wabarkaat
1:56:10 lts = Long Term Support, not latest. You could've place some text comment on top of the video at least to not confuse people.
Walaikum assalam bro😍
Ve aleyküm esselam, nice video :)
@Nana Earlier in your presentation you used Deployment for stateless applications and StatefulSet for stateful (like DB).. What is the reason you used a deployment for MongoDB ?
I'd expect Statefulset
If you run into "The connection to the server localhost:8080 was refused - did you specify the right host or port?"
Be sure to execute "minikube start"
:D
What is the difference between
ADD and COPY
veryvery good, nice and flowy!
Weehee !! Exactly what I wanted !!
Waalaikum salam warahmatullahi wabarakatuh my brother
Wa 3alykoum salam my brother
I think 7:10 is not correct. VM with type two hypervisor shares host OS (typically some kernel). I agree if you explain only type one hypervisor.
I've just had a micro heart attack after "as-salamu aleikhem" -- I was afraid that video isn't in english XD
It was a bit weird. In all these tutorials and courses I've seen on this channel, this is the first one that the person announces their religion in the beginning.
PS: not that there is anything wrong with it
@@felicytatomaszewska so he should die because he feared that he could not understand the content of a video he wanted to watch... How concidered of you
First of all (Umbar Power) that isn't a nice thing to say.
Secondly, some people really think Muslims cannot speak English?
There are like 1.8 billion Muslims, you can find in almost every country.
So, I'm not surprised at all.
such a sneaky way to creep in with some prejudice. andrey, take care of your heart's physical fitness and clear your mind of prejudice. this is a good free resource and amigos' content is on point.
@@ali2538 Bro Assalamu Aleikhem is a greeting it is not announcing your religion.
Waalikum assalam!
should we apply alpine for product?
Docker rm should remove the container
Rm command usually used to delete
So if we deleted the container don't we need to install the docker image then run the container?
Means rm just removes the image from the cli but the image will be in background consuming disk space?
I'm i correct?
So Docker is basically the advanced hi-tech ship and K8s is the smart manager dealing with logistics and what not.
can we also change the port number ?