Day 1 - Notes


What is Docker ! 

  • Docker has set of standards for container management.
  • docker runs on linux server .
  • 98.6% is linux in market in production
  • VM-share/access physical hardware
  • virutalization done at hardware not at the software level
  • docker does sw virtualization replacement of hydervisor.
  • communbicates between host and guest os
  • in RYT Change management is difficult.
  • multiple changes, tech changes--cant goto ryt container..
  • whatever hypervisor does + sw virutalizatin = Docker




sw virtualization is container management in docker... VM does only hw virutualization but hw+sw can be done  in docker.

in VM we have images
in docker - we create container to use those images. and container can be managed.
to access inmage, v need container.


nginx is a open source web server - 600mb
ubuntu applicaiton - 200 mb
mysql - 400mb
alpine/redis - opensource - largely for property files - nosql map configuration file - text bsaed reading - 400mb


ontime,security,resilence,safety,
conainter lightweight compoentnts have  IP and image is heavyweightcomponent.

images wont have IP
image is static component
port allocation happen at container level..not at image level.image is read only.
all values available at container..once we set all the values at container level it can be overwritten to image. so same ports and values can be persist and imported at diff container.

image is just mirror and read only object.


container vlaues can be read only via docker secure.

in traditional design - monolothis architecture
-web
appl
-db
timeslines years together
multiple sprint cycles - tracking/porting
db is fixd,appis fixed, web is fixed.


docker is based on microservices standards
kubernets is bsaed on micr/macro standads
RYT is mono/macro service/micro service standards




dokcer CLI - - inidividual container & image.
docker machine - VM levle anl DM
docker composer - containre mgmt



gitHUB ---< image
experienment CLIcannot be used for production.
experimetal cli can be used for testing purposes.

static cli will be release dby docker. then it cabe used.

images are abstract. logical objecs are containers.
container can contain one or more images.
in an image there's thin layer, that is interface layer (individual property of container i.e user defined configuraions, env settings of container, passwords, configurations,securty settings, of the containre and services of container)
for every docker to operation we need docke rmachine..i.e vm
dokcer macien does ooperations of hyerpervisor..
docker machien servie in will be always on linux medium only.


docker daemon  communicates/transdfer protocolic info to docker client or server. works like hyp++. does translation job.


windows - ntfs/nfs(file based)
linux (UFS/AUFS) (block level) -- it can goto zfs/device mapper/btrfs


DML is registry for docker.
repository (dictionary)
registry is collection of images and staick
container is collection of images.
through container access appl
through regitery its safe lock for images.

public registry - available public/ push/readonly/ no deletion
private registry - limited to set of ppl.
this registry can be on cloud or on localhost also. lcaolhost registyr is also possible. same machine cna act as registrey/repositry/container.





hub.docker - public repository for open source sw..registry settings can be  stored here.  here l;icencsed sw will not be avaiable.
free account - 1 pp/private registry.

store.docker - licensed version of software available here.
private repository for licensed IP


jdk might be aviabale in hub.docker and store.docker. but if you want support for jdk then storedocker need to be chosen.



NOTARY - signs registry/designs registry. whether comes from right validation it cheks.
it is outside docker machine.
you can sign images.
containers need not be signed.



stack of containers..
in docker machine if there are multiple containers..and if container 1 need not talk to conteiner1. then stack of machines can be configured.
stack is list of container.

72 services in yaml. all can be defined in yaml.
create stack at macnine level or container level.





editions
-legacy   (docker toolbox- all features present in CE are available here) (kitematic UIfor mgmt)
-community - (3 major releases, windows 10 annivers and above, linux (redhat,linux,unix,ubuntu,fedora and alpine)) .is ok in production but experimental CLI is not present. new feature need to buyy EE.
-enterprise
-EE
- basic (privacy, experimental CLI)
- adv - (privacy, insurence, experimental CLI)
- platinum (privacy.insurence by cost and data,protection,private regitry, access to docker store)

sensitve banking customer pref is to use EE.

backpu/recovery/leakage of data/privacy of date all this is possible in EE.
community edition these preferences are not given



18.01   -docker toolbox
EE --supported from 1401 to 1801
CE - all versions avalabile.
legacy suporte dfrom 1301 to 1801




docker is good for container management.
good for nw architectoru.

beyond nw arch it fails. auto healing mechanism is not there.
only goes by service logic, it doesnt override anything that we define.



incidentmt mangemt should not be done..event mgmt should be done.. like based on threshod do this action.

hence kubernets.advance to docker, where evcent mgmt, healing can be done.
docker dictates, this is how u shoudl do it, ..etc.
kubernets


in docker everuthing is json format.
whereas kubernets - property file, json,editor file. its not a standard, its implemntonmg standard.
in docker server os is always linux. in kub available in all 3 releases.


1)security nw sclaability autohealing goto kuber
2) flexibility interms of dictating,, leafning yaml,json if u dont want -- goto kuber
3) 17 os are sppported by docker, outof side scope of these 17 means go for kubernets.
4) docker is avalable for legacy. kuber high end infra mgmt. with doker wven small container mgmt can be done.


infra mgmt - docker is outof scope, kube is for infra and heal magmtn






Comments

Popular posts from this blog

Day 2 recap questions walkthrough (certification kind of)

Day 5 Flow