Day1 Certification Questions Walkthrough




1) removes all stopped containers
docker container prune - physical deletion, memory is released
prune can be applied on any docker objects.

2) diff betn container and image
image is read only
containers are read write.
image is static repre
containers can be networked
container have IP , image don't have
export container, containers are scoped to docker machine
image have global scope. can be parcelled docker machine,container machine and app.
image is exportable, containers are exportable. containers have to convert to image to export it.


3) how to create an image in docker
docker pull - creates static images
docker commit  -  creates static images
docker export - creates tarball image
docker load - creates archived image

4) different betwn run/pull/exec options in docker.
run - create/start/exec..pulls it from hub,packges into container, executes conatiners. run creates container.
pull -creats image
exec - executes into UP container.assumes already container present. access already running container

5)
how to determine the client an server OS of docker machine.
docker version

6) default port of docker url?
6162
2376
4007
these ports are restricted ports, not reserved ports. these ports are to be used by selective processes.

via these ports docker communicates.
$ docker-machine url
tcp://192.168.99.100:2376

$ docker-machine ip
192.168.99.100

7) docker node can talk to another docker node through __NETWORK___ by____BRIDGE_____
bridge is driver, network is component.

8) docker containers are persistent
yes. meaning, state of values are accessed in are stored in container. they are stored permanently in container despite start/stop container. state of user defined objects in the container are persistent.


9) docker containers - can the same image be stored in different containers - if yes, what is the state of the image in dockers, if there an option to state persistance.
yes. image of indepenent of persistance state with respect to container.

10) how to identify the log of the container
oneway: docker logs <container>
log contains addded, changed, deleted with respect to image what are changes are made its written.

secondway: docker diff <container> logs of container. tells what is added/deleted.etc.

third way: inspect the logpath


11) without docker ps -a, state the option to determine whether a container
docker contains ls

12) when pulling image from hub docker - what is the first protocol docker cli checks.
NOTARY handshake happens, always given by token ID of docker machine, that is passed to hub docker. hub docker gives token back saying trusted resource.
token id is combination of IP/server/scope and domain. 32 to 34 bits of infomation.
docker machine ID 64 bytes.

4 handshakes happen when we pull image.
notary -- accessiblity -- daocker machine --storage
(trusted) -- (security) -(compatibity)--(memory/space)

13)  is each docker machine a VM?
docker built on VM. its part of VM. it does more then VM. it has IP.

14) can docker machine be associated with various docker drivers like hypoerv and virtualbox.
yes. 17 drivers are available for 17 docker machines.

15) Hypervisor - is it replacement for hypervisor
its not replacement of hyp. it does more then hyp.

16) is docker a freeware?
its not freeware.  it is opensource.

17) what is command to measure utilization of docker engine?
docker stats.

18) Dockers and VM - do they co-exist?
Yes. if you want to run apps against multiple servrs..we create VM.. multiple app replicated in one server and many servers..dockers.

19) container ID - what is the length of container ID
max length 64 Bytes, in the inspect of container. 12 digits b0e1978d67e8. same size across different OS.

20) can an image be overwritten
-yes, by executing docker commit

Comments

Popular posts from this blog

Day 2 recap questions walkthrough (certification kind of)

Day 1 - Notes

Day 5 Flow