Day1
==================================================
What is Docker?
=========================================
Cont mgmt. tool.
Release
commm
entr
soloman hykes
go
Windows
Linux
Tool
- Save Cost
1 Day ---- 5 mins 1 sec
=====
1 PS 1 VM 1 Container
=================================================
Container takes less cpu+ram+st+lice
less wastage
- Save time
1 Day ---- 5 mins 1 sec
- Imp eff
mgmt
==========================
VM -> Create + Start + stop + restart + pause + unp + kill + remove
Container - Create + Start + stop + restart + pause + unp + kill + remove
What is Cont.
============================
https://www.youtube.com/watch?v=wWNE3J1Hr_k
Container
lightweight APP RUNTIME env
Kernal
Namespace
PID 1 PID
mnt ---> rootfs e.g windows16
Net -1 net
1 user
=================
Container
BOOTFS --> ROOTFS --> USERFS -> APP
windowskernel -- windows16 - -admin --- notepad
Linuxkernal --> ubunt/fed/centos -- root -- ls
Understanding of Windows Kernel
Class --> N Object
== 1 PID
same beh as it has in class
==============================================
I want to learn DOCKER. What to do?
========================================
Step 1 - First install Docker?
<blockquote class="wp-embedded-content" data-secret="rAEdaySE4D"><a href="https://www.devopsschool.com/blog/how-to-install-docker-in-linux/">Docker Tutorials: How to Install Docker in Ubuntu?</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Docker Tutorials: How to Install Docker in Ubuntu?” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/how-to-install-docker-in-linux/embed/#?secret=YOBMUK1nEV#?secret=rAEdaySE4D" data-secret="rAEdaySE4D" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
https://docs.docker.com/desktop/setup/install/windows-install/
Step 2 - Download Image.
VM Image --->
BOOTFS --> ROOTFS --> USERFS -> APP
windowskernel -- windows16 - -admin --- notepad
Linuxkernal --> ubunt/fed/centos -- root -- ls
Docker image
ROOTFS --> USERFS -> APP
windows16 - -admin --- notepad
ubunt/fed/centos -- root -- ls
Step 3 - Download from - https://hub.docker.com/
Step 4 - Run a container from image or many thing like
Create + Start + stop + restart + pause + unp + kill + remove
12 docker images
13 docker pull httpd
14 clear
15 docker images
16 clear
17 docker create httpd
18 docker ps -a
19 docker create httpd
20 docker ps -a
21 docker start
22 docker start dd4b7956607e
23 docker ps -a
24 docker start af68c12fed74
25 docker ps -a
26 clear
27 docker ps
28 docker ps -a
29 docker stop laughing_thompson
30 docker ps -a
31 docker restart
32 docker restart friendly_pike
33 docker ps -a
34 docker pause af68c12fed74
35 docker ps -a
36 docker stats
37 docker ps -a
38 docker unpause af68c12fed74
39 docker ps -a
40 docker kill
41 docker kill af68c12fed74
42 docker ps -a
43 docker rm dd4b7956607e
44 docker ps -a
How can I access it?
======================================
RUN APP In VMS or Laptop
windows --? power shell
Linux - > Bash shell
docker exec -it af68c12fed74 /bin/bash
ABOUT docker run
to Attach
================================
pull + Create + Start + Attach
$ docker run -d
DO NOT to Attach
================================
pull + Create + Start + Attach
$ docker run -d httpd
$ docker ps -a
ip:port
$ docker run -itd -p 80:80 httpd
$ docker run -itd -p 81:80 httpd
vdocker run -itd -p 82:80 httpd
DEMO
===========================================
Install Docker Desktop
https://docs.docker.com/desktop/setup/install/windows-install/Code language: JavaScript (javascript)