Define a docker image in 10 bullets points

Docker image is a collection of filesystems. Each image has a unique UUID assigned via sha-256 algorithm.Each image and a container has storage device assocaited with it.Each file system represents a layer in the image.The base layer for any image is the rootFS.Every layer comes bundled with it’s parent layer.All the layers of an image are read only.At the time of container start, a merged layer is created including all the layers of corresponding image and made writable for custimization.

Read more

Assignment Day-2 Answer

Docker Update command Docker update command is used to change the configurations of one or more docker container dynamically. [root@ip-172-31-7-40 centos]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES15c695103fd0 jenkins/jenkins “/sbin/tini — /usr/…” 19 hours ago Exited (137) 7 minutes ago sharp_albattanie91a38a225ad ubuntu “bash” 20 hours ago Up 16 minutes practical_shirley[root@ip-172-31-7-40 centos]#[root@ip-172-31-7-40 centos]# docker inspect 15c695103fd0 | grep -i cpu“CpuShares”: 100,“NanoCpus”: 1000000000,“CpuPeriod”: 0,“CpuQuota”: 0,“CpuRealtimePeriod”: 0,“CpuRealtimeRuntime”: 0,“CpusetCpus”: “”,“CpusetMems”: “”,“CpuCount”: 0,“CpuPercent”: 0,[root@ip-172-31-7-40 centos]# The current CpuShares value for this container

Read more

Answer for Assignment – Day 1

What is the diff between docker pause and docker unpause? Docker pause command is used to move the processes running within the container to paused state by sending a signal SIGSTOP and then the docker unpause command can be used to bring back the processes to running state. What is the diff between docker stop and docker kill? Docker stop command is used to stop all the running processes within the container by sending a SIGTERM signal which can be

Read more