Create one Image which have base as centos and with git – ntp – httpd

Created an image docker run –name sree -itd centosb50dcbcba771a111bf7c0b9a08eb4f14acfb83c666b2d5f8afbc13a7afc0748eroot@ip-172-31-28-155:/home/ubuntu# docker ps|grep sreeb50dcbcba771 centos “/bin/bash” 15 seconds ago Up 14 se conds sreeroot@ip-172-31-28-155:/home/ubuntu# docker attach sreeyum install git -yyum install httpddocker commit -a”sreerekha” -m”ce-git-httpd -sree” sree ce-git-httpd-sree docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEce-git-httpd-sree latest b50885a6b058 19 seconds ago 346MB docker run –name rekha -itd ce-git-httpd-sree0d9262edc8ec86f142dc3fcb0b78cd1b923f9003ca022aa4a68b258bf6b0efc9root@ip-172-31-28-155:/home/ubuntu# docker ps|grep rekha0d9262edc8ec ce-git-httpd-sree “/bin/bash” 17 seconds ago Up 16 seconds rekha docker exec rekha git –versiongit version 2.27.0

Read more

Day2:Create one image which have base as centos and with git -ntp – httpd

root@ip-172-31-28-155:/var/lib/docker/overlay2# docker run -itd –name anoop_centos_2 centos460aebb7de8bde42112d32e5e37df7617fb8e0588a9bdccf79f47d98357cede7 [root@ip-172-31-28-155:/var/lib/docker/overlay2# docker ps | grep anoop460aebb7de8b centos “/bin/bash” 4 seconds ago Up 3 seconds anoop_centos_2 root@ip-172-31-28-155:/var/lib/docker/overlay2# docker attach 460aebb7de8b [root@460aebb7de8b /]# yum update [root@460aebb7de8b /]# yum install git [root@460aebb7de8b /]# yum install epel-release [root@460aebb7de8b /]# yum install -y ntp –> failed [root@460aebb7de8b /]# yum install httpd [root@460aebb7de8b /]# read escape sequenceroot@ip-172-31-28-155:/var/lib/docker/overlay2# docker ps | grep anoop460aebb7de8b centos “/bin/bash” 12 minutes ago Up 12 minutes anoop_centos_2 root@ip-172-31-28-155:/var/lib/docker/overlay2# docker commit -a “anoop” -m “centos with

Read more

What is Docker Images and Explain in 10 bullet lines?

1.Docker Image is like a template from which we can create docker containers 2.Docker images have multiple layers 3.Writable layer is only the upper layer which will be created when we are creating a container 4.Docker images get stored in public or private repositories 5.Docker images can be created either by manually or using docker file 6.The read-only layers of an image can be shared between any container started from the same image. 7.Size is the size used by writable

Read more

What is Docker Images and Exaplin in 10 bullet lines?

• A Docker image is a file used to execute code in a Docker container.• Docker images act as a set of instructions to build a Docker container, like a template.• Docker images also act as the starting point when using Docker.• An image is comparable to a minimal lightweight snapshot in virtual machine (VM) environments.• Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run.• When a user runs an image, it

Read more

Assignment 1 Day 2

What is Storage Driver and types of Storage Driver? Explain with Images.A docker image can have different layers. When a container is created out of this image it will also have a writable layer on top of all the read only layers created out of the image. A storage driver manages all these layers making it appear as a single file system to the user. Multiple implementations of storage driver are available. What is Docker Images and Explain 10 bullet

Read more

Docker Images

> Docker is a read-only template with instructions for creating a Docker container.. > An image may be an independent or may be based on other image with some customization. > It is a file which is used to execute the code in Docker container. >The docker image runs only in the docker platform. >A Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run >It might be a group of files or

Read more

What is Docker Images and Explain in 10 bullet lines?

Collection of file systems, ROOTFS, APPFS, USERFS. One copy of docker image can attach to many containers. From one image multiple containers can be created File system layered over each other. Higher layer wins. Each layer is each File system Layer 0 should be base image or Root FS Once image is attached to container, these layers will be attached to the container as a single layer The layers in the image will be in read only format, and to

Read more

Day2: Create one image which have base as ubuntu and with git -ntp – apache2

root@ip-172-31-28-155:/var/lib/docker# docker run -itd –name anoop_ubuntu_base ubuntubcba3eb8cfb3d221c9f8f753a65c86ee5ea924d8c69438342d3e83d429d572a9root@ip-172-31-28-155:/var/lib/docker# docker ps | grep anoopbcba3eb8cfb3 ubuntu “bash” 5 seconds ago Up 4 seconds anoop_ubuntu_baseroot@ip-172-31-28-155:/var/lib/docker# docker attach bcba3eb8cfb3 root@bcba3eb8cfb3:/# apt-get update root@bcba3eb8cfb3:/# apt-get install git root@bcba3eb8cfb3:/# apt-get install httpd root@bcba3eb8cfb3:/# apt-get install mini-httpd root@bcba3eb8cfb3:/# which git/usr/bin/git root@bcba3eb8cfb3:/# mini_httpdbind: Address already in use root@bcba3eb8cfb3:/# apt-get install ntpReading package lists… Done root@ip-172-31-28-155:/var/lib/docker# docker ps | grep anoopbcba3eb8cfb3 ubuntu “bash” 6 minutes ago Up 6 minutes anoop_ubuntu_base root@ip-172-31-28-155:/var/lib/docker# docker commit -a “anoop” -m “ubuntu with git, ntp

Read more

What is Storage Driver and types of Storage Driver?

The Linux kernel device drivers are, essentially, a shared library of privileged, memory resident, low level hardware handling routines. It is Linux’s device drivers that handle the peculiarities of the devices they are managing. One of the basic features of is that it abstracts the handling of devices The following is a list of the types of docker storage driver which can be configured and their use case: • overlay2 – This is the preferred storage driver for all Linux distributions• aufs –

Read more
1 57 58 59 60 61 185