Docker-Assignment-Vindhya

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Step1: Register a site to POST Assigment and Share with Trainer and For Self Notes. Userid: Vindhya

Step2: Pre Test using LMS: Sent screenshot to Shiva

Step 3 – Install Docker Engine in Centos#1 Vm.

[root@ip-172-31-2-102 centos]# history
    1  vi /etc/ssh/sshd_config
    2  passwd centos
    3  systemctl restart sshd
    4  systemctl restart sshd
    5  passwd centos
    6  vi /etc/ssh/sshd_config
    7  systemctl restart sshd
    8  passwd centos
    9  exit
   10  sudo yum install -y yum-utils device-mapper-persistent-data lvm2
   11  sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
   12  sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
   13  sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
   14  sudo yum install -y docker-ce
   15  sudo yum install docker-ce
   16  docker -v
   17  sudo systemctl enable docker
   18  ps -ef|grep docker
   19  sudo systemctl start docker
   20  docker info
   21  sudo docker run hello-world
   22  docker info
   23  history
[root@ip-172-31-2-102 centos]# sudo systemctl enable docker
[root@ip-172-31-2-102 centos]# sudo systemctl start docker
[root@ip-172-31-2-102 centos]# sudo docker run hello-world
[root@ip-172-31-2-102 centos]# docker ps -a
CONTAINER ID   IMAGE         COMMAND    CREATED          STATUS                      PORTS     NAMES
3c346de20dfd   hello-world   "/hello"   2 minutes ago    Exited (0) 2 minutes ago              elastic_bardeen
8545a66d0a03   hello-world   "/hello"   14 minutes ago   Exited (0) 14 minutes ago             ecstatic_kilby
[root@ip-172-31-2-102 centos