Monday, December 19, 2016

Exam Result Month of December 2016

RHCE  : 16.12.2016 : Hyderabad

Exam calendar Month of December 2016

ServerHardening : 23.12.2016 : Bangalore
JBOSS                 : 30.12.2016 : Bangalore
Openstack           : 30.12.2016 : Bangalore
RHCSA               : 16.12.2016 : Chennai
RHCE                 : 20.12.2016 : Chennai
Storage               : 20.12.2016 : Chennai
Openstack          : 29.12.2016 : Chennai
Ansible               : 29.12.2016 : Chennai
Puppet                : 29.12.2016 : Chennai
RHCSA              : 30.12.2016 : Chennai
RHCE                : 30.12.2016 : Chennai

Training Calendar Month of December 2016

RHCE FAST TRACK       : 02.12.2016 : Chennai
Puppet (Week End)            : 03.12.2016 : Chennai
Puppet (Week End)            : 04.12.2016 : Chennai
Openstack (Week End)      : 03.12.2016 : Chennai 
Openstack (Week End)      : 04.12.2016 : Chennai 
CL110 (Week End)             : 03.12.2016 : Chennai  
CL110 (Week End)             : 04.12.2016 : Chennai 
CL110 (Week End)             : 10.12.2016 : Chennai  
CL110 (Week End)             : 11.12.2016 : Chennai 
RHCE (Week End)             : 10.12.2016 : Chennai  
RHCE (Week End)             : 11.12.2016 : Chennai 
RHCE (Week Days)           : 12.12.2016 : Chennai  
Openstack (Week End)       : 17.12.2016 : Chennai 
Openstack (Week End)       : 18.12.2016 : Chennai 
Openstack (Week End)       : 24.12.2016 : Chennai 
Openstack (Week End)       : 25.12.2016 : Chennai 
RHCE (Week Days)            : 05.12.2016 : Hyderabad
RHCSA (Week End)            : 10.12.2016 : Hyderabad
RHCE (Week Days)             : 26.12.2016 : Hyderabad
Virtualization (Week Days)  : 27.12.2016 : Hyderabad
Virtualization (Week Days)  : 28.12.2016 : Hyderabad
Virtualization (Week Days)  : 29.12.2016 : Hyderabad  
RHCE (Week End)               : 31.12.2016 : Hyderabad  
JBOSS (Week Days)            : 21.12.2016 : Bangalore
JBOSS (Week Days)            : 22.12.2016 : Bangalore
JBOSS (Week Days)            : 23.12.2016 : Bangalore
JBOSS (Week End)              : 24.12.2016 : Bangalore
JBOSS (Week End)              : 25.12.2016 : Bangalore
JBOSS (Week Days)            : 26.12.2016 : Bangalore     
RHCSA (Week Days)           : 26.12.2016 : Bangalore     
RHCE (Week Days)             : 26.12.2016 : Bangalore        

Training Calendar Month of November 2016

RHCE (Week End)           : 05.11.2016 : Chennai
 RHCE (Week End)          : 06.11.2016 : Chennai
 RHCE (Week Days)        : 07.11.2016 : Chennai
 RHCE (Week Days)        : 09.11.2016 : Chennai
JBOSS (Week End)          : 12.11.2016 : Chennai
JBOSS (Week End)          : 13.11.2016 : Chennai
JBOSS (Week End)          : 19.11.2016 : Chennai
JBOSS (Week End)          : 20.11.2016 : Chennai
Ansible (Week Days)        : 21.11.2016 : Chennai
Ansible (Week Days)        : 22.11.2016 : Chennai
Ansible (Week Days)        : 23.11.2016 : Chennai
Ansible (Week Days)        : 24.11.2016 : Chennai
Puppet (Week End)           : 26.11.2016 : Chennai
Puppet (Week End)           : 27.11.2016 : Chennai
Openstack (Week End)    : 26.11.2016 : Chennai
Openstack (Week End)    : 27.11.2016 : Chennai
RHCE (Week End)           : 26.11.2016 : Chennai
Ansible (Week End)          : 05.11.2016 : Bangalore
Ansible (Week End)          : 06.11.2016 : Bangalore
RHCE (Week Days)         : 07.11.2016 : Bangalore
Ansible (Week Days)        : 12.11.2016 : Bangalore
Ansible (Week End)          : 13.11.2016 : Bangalore
RHCE (Week End)           : 12.11.2016 : Bangalore
JBOSS (Week Days)        : 14.11.2016 : Bangalore
JBOSS (Week Days)        : 15.11.2016 : Bangalore
JBOSS (Week Days)        : 16.11.2016 : Bangalore
JBOSS (Week Days)        : 17.11.2016 : Bangalore
RHCE (Week Days)         : 21.11.2016 : Bangalore
Openstack (Week Days)   : 21.11.2016 : Bangalore
Openstack (Week Days)   : 22.11.2016 : Bangalore
Openstack (Week Days)   : 23.11.2016 : Bangalore
Openstack (Week Days)   : 24.11.2016 : Bangalore
RHCE (Week Days)         : 26.11.2016 : Bangalore
Storage (Week End)         : 12.11.2016 : Hyderabad 
Storage (Week End)         : 13.11.2016 : Hyderabad
 

Exam Calendar Month of November 2016

RHCSA EX200   : 16.11.2016  : Chennai
RHCE EX300     : 16.11.2016  : Chennai
JBOSS EX248    : 28.11.2016  : Chennai
Ansible EX407    : 28.11.2016  : Chennai
JBOSS EX248    : 29.11.2016  : Chennai
Ansible EX407    : 29.11.2016  : Chennai
RHCSA EX200   : 30.11.2016  : Chennai
RHCE EX300     : 30.11.2016  : Chennai

Exam Result Month of November 2016

RHCE EX300      :16.11.2016 : Chennai
RHCSA EX200   : 16.11.2016 : Chennai
RHCSA EX200   : 25.11.2016 : Chennai
Ansible EX407    : 25.11.2016 : Chennai
RHCE EX300     : 30.11.2016 : Chennai
RHCSA EX200   : 30.11.2016 : Chennai
RHCE EX300     : 30.11.2016 : Bangalore
RHCSA EX200   : 30.11.2016 : Bangalore


Sunday, October 16, 2016

Training Calendar Month of October 2016

Ansible (Week End)   : 01.10.2016  : Bangalore
Ansible (Week End)   : 02.10.2016  : Bangalore
RHCE (Week Days)  : 03.10.2016 : Bangalore
RHCE (Week End)    : 08.10.2016 : Bangalore
Ansible (Week End)   : 08.10.2016  : Bangalore
Ansible (Week End)   : 09.10.2016  : Bangalore
RHCE (Week End)    : 22.10.2016 : Bangalore
RHCE (Week Days)  : 03.10.2016 : Chennai
RHCE (Week End)    : 08.10.2016  : Chennai
Ansible (Week End)   : 08.10.2016  : Chennai
RHCE (Week Days)   : 12.10.2016 : Chennai
Ansible (Week Days)  : 17.10.2016  : Chennai
Ansible (Week Days)  : 18.10.2016  : Chennai
Ansible (Week Days)  : 19.10.2016  : Chennai
Ansible (Week Days)  : 20.10.2016  : Chennai
RHCE (Week End)     : 22.10.2016  : Chennai
RHCE (Week End)     : 23.10.2016  : Chennai

Exam Calendar Month of October 2016

EX210(Openstack)   : 03.10.2016  : Bangalore
EX300(RHCE)          : 03.10.2016  : Bangalore
EX248(JBOSS)         : 13.10.2016 : Chennai
EX200(RHCSA)       : 24.10.2016 : Chennai
EX300(RHCE)         : 24.10.2016 : Chennai
EX405(Puppet)         : 24.10.2016 : Chennai
EX407(Ansible)        : 24.10.2016 : Chennai

Exam Result Month of October 2016

Wednesday, September 28, 2016

Training Calendar Month of September 2016

Puppet      (WeekEnd) :03.09.2016 :Chennai
Puppet      (WeekEnd) :04.09.2016 :Chennai
Puppet      (WeekEnd) :10.09.2016 :Chennai
Puppet      (WeekEnd) :11.09.2016 :Chennai
RHCE       (WeekEnd) :17.09.2016 :Bangalore
Openstack(WeekEnd) :17.09.2016 :Bangalore
Openstack(WeekEnd) :18.09.2016 :Bangalore
RHCE       (WeekDays):19.09.2016 :Bangalore
Openstack(WeekEnd)  :24.09.2016 :Bangalore
Openstack(WeekEnd)  :25.09.2016 :Bangalore

Exam Calendar Month of September 2016

EX300 :19.09.2016 :Chennai
EX407 :19.09.2016 :Chennai
EX248 :20.09.2016 :Chennai
EX200 :20.09.2016 :Chennai
EX210 :29.09.2016 :Chennai
EX405 :29.09.2016 :Chennai
EX200 :30.09.2016 :Chennai
EX300 :30.09.2016 :Chennai
EX300 :26.09.2016 :Bangalore

Exam Result Month of September 2016

Wednesday, September 14, 2016

Training calendar Month of August 2016

RHCE(Week Days)        :01.08.2016 :Chennai
RHCE(Week Days)        :01.08.2016 :Chennai
RHCE(Week End)          :06.08.2016 :Chennai
CL210(Week End)          :06.08.2016 :Chennai
Puppet(Week End)         :06.08.2016 :Chennai
CL210(Week End)          :07.08.2016 :Chennai
Puppet(Week End)          :07.08.2016 :Chennai
Puppet(Week Days)         :09.08.2016 :Chennai
Puppet(Week Days)         :10.08.2016 :Chennai
Puppet(Week Days)         :11.08.2016 :Chennai
Puppet(Week Days)         :12.08.2016 :Chennai
CL210(Week End)           :13.08.2016 :Chennai
RHCVA(Week End)        :13.08.2016 :Chennai
Puppet(Week End)          :13.08.2016 :Chennai
RHCE(Week End)           :13.08.2016 :Chennai
OpenStack(Week End)    :13.08.2016 :Chennai
Puppet(Week End)          :13.08.2016 :Chennai
CL210(Week End)           :14.08.2016 :Chennai
RHCVA(Week End)        :14.08.2016 :Chennai
Puppet(Week End)          :14.08.2016 :Chennai
Ansible(Week Days)        :15.08.2016 :Chennai
RHCE(Week Days)         :15.08.2016 :Bangalore
OpenStack(Week Days)  :15.08.2016 :Bangalore
Puppet(Week Days)         :15.08.2016 :Bangalore
Ansible(Week Days)        :16.08.2016 :Chennai
Ansible(Week Days)        :17.08.2016 :Chennai
Ansible(Week Days)        :18.08.2016 :Chennai
RHCVA(Week End)        :20.08.2016 :Chennai
Ansible(Week End)         :20.08.2016 :Chennai
RHCVA(Week End)        :21.08.2016 :Chennai
Ansible(Week End)         :21.08.2016 :Chennai
JB248(Week Days)          :22.08.2016 :Chennai
JB248(Week Days)          :23.08.2016 :Chennai
JB248(Week Days)          :24.08.2016 :Chennai
JB248(Week Days)          :25.08.2016 :Chennai
Ansible(Week End)         :27.08.2016 :Chennai
RHCE(Week End)          :27.08.2016 :Chennai
Ansible(Week End)        :28.08.2016 :Chennai
RHCE(Week End)         :28.08.2016 :Chennai

Exam Calendar Month of August 2016

EX210 :05.08.2016 :Chennai
EX200 :11.08.2016 :Chennai
EX300 :11.08.2016 :Chennai
EX210 :12.08.2016 :Chennai
EX248 :12.08.2016 :Chennai
EX200 :25.08.2016 :Chennai
EX300 :25.08.2016 :Chennai
EX200 :25.08.2016 :Bangalore
EX300 :25.08.2016 :Bangalore
EX210 :25.08.2016 :Bangalore
EX405 :25.08.2016 :Bangalore
EX210 :25.08.2016 :Chennai

Exam Result Month of August 2016

RHCE-EX300           : Aug 25, 2016 : Chennai
RHCE-EX300           : Aug 11, 2016 : Chennai
RHCSA-EX200         : Aug 11, 2016 : Chennai
EX210 (Openstack)  : Aug 05, 2016 : Chennai

Training calendar Month of July 2016

Puppet DO405(Week End):03.07.2016 :Chennai
Puppet DO405(Week End):04.07.2016 :Chennai
Puppet DO405(Week End):10.07.2016 :Chennai
Puppet DO405(Week End):11.07.2016 :Chennai

Exam Calendar Month of July 2016

EX210 :01.07.2016 :Chennai
EX200 :01.07.2016 :Chennai
EX200 :13.07.2016 :Chennai
EX300 :13.07.2016 :Chennai
EX248 :13.07.2016 :Chennai
EX210 :14.07.2016 :Bangalore
EX318 :14.07.2016 :Bangalore
EX200 :28.07.2016 :Chennai
EX300 :28.07.2016 :Chennai
EX200 :28.07.2016 :Bangalore
EX300 :28.07.2016 :Bangalore

Exam Result Month of July 2016

Monday, September 12, 2016

Training calendar Month of June 2016

RHCVA(Week End)    :04.06.2016 :Chennai
CL210(Week End)      :04.06.2016 :Chennai
RHCSA(Week End)    :04.06.2016 :Hyderabad
RHCE (Week End)     :04.06.2016 :Hyderabad
RHCE (Week End)     :04.06.2016 :Chennai
RHCVA(Week End)   :05.06.2016 :Chennai
CL210(Week End)     :05.06.2016 :Chennai
CL210(Week Days)   :06.06.2016 :Chennai
RH413(Week Days)   :07.06.2016 :Chennai
CL210(Week Days)    :07.06.2016 :Chennai
RH413(Week Days)   :08.06.2016 :Chennai
CL210(Week Days)   :08.06.2016 :Chennai
RH413(Week Days)   :09.06.2016 :Chennai
RH413(Week Days)   :10.06.2016 :Chennai
JB248                         :11.06.2016 :Chennai
JB248                         :12.06.2016 :Chennai
CL210(Week Days)   :13.06.2016 :Chennai
CL210(Week Days)   :14.06.2016 :Chennai
CL210(Week Days)   :15.06.2016 :Chennai
RHCE (Week Days)  :15.06.2016 :Chennai
CL210(Week Days)  :16.06.2016 :Chennai
JB248                        :18.06.2016 :Chennai
JB248                        :19.06.2016 :Chennai
CL210(Week End)    :25.06.2016 :Hyderabad
RHCE (Week End)   :25.06.2016 :Chennai
CL210(Week End)   :26.06.2016 :Hyderabad

Exam Calendar Month of June 2016

EX200 :13.06.2016 :Chennai
CL210 :20.06.2016 :Bangalore
EX300 :28.06.2016 :Bangalore
EX200 :28.06.2016 :Bangalore
EX318 :29.06.2016 :Bangalore
EX413 :30.06.2016 :Bangalore
EX300 :30.06.2016 :Chennai
EX318 :30.06.2016 :Chennai

Exam Result Month of June 2016

RHCE-EX300    : June 30, 2016 : Chennai
RHCVA-EX318 : June 30, 2016 : Chennai
RHCSA-EX200 : June 13, 2016 : Chennai

Training calendar Month of May 2016

RHCE   (Week Days)  :02.05.2016 :Chennai
RHCSA (Week End)   :02.05.2016 :Bangalore
RHCE   (Week End)   :02.05.2016 :Bangalore
RHCE   (Week Days)  :11.05.2016 :Chennai
RHCE   (Week Days)  :17.05.2016 :Chennai
RHCVA (Week End)   :28.05.2016 :Chennai
CL210   (Week End)   :28.05.2016 :Chennai
RHCVA (Week End)   :29.05.2016 :Chennai
CL210   (Week End)    :29.05.2016 :Chennai
RHCSA (Week Days)  :30.05.2016 :Hyderabad
RHCE   (Week Days)  :30.05.2016 :Hyderabad

Exam Calendar Month of May 2016

EX200 :19.05.2016 :Chennai
EX300 :19.05.2016 :Chennai
EX300 :25.05.2016 :Chennai
EX210 :25.05.2016 :Chennai
EX300 :26.05.2016 :Chennai
EX200 :27.05.2016 :Bangalore
EX300 :27.05.2016 :Bangalore
EX300 :31.05.2016 :Chennai

Exam Result Month of May 2016

RHCE-EX300   : May 26, 2016  : Chennai
RHCSA-EX200 : May 19, 2016  : Chennai

Training calendar Month of April 2016

CL210(Week End)  :02.04.2016 : Chennai
RHCE(Week End)  :03.04.2016 : Chennai
CL210(Week End)  :09.04.2016 : Chennai
CL210(Week End)  :10.04.2016 : Chennai
RHCE(Week Days) :11.04.2016 : Chennai 
CL210(Week Days) :26.04.2016 : Chennai
CL210(Week Days) :27.04.2016 : Chennai
CL210(Week Days) :28.04.2016 : Chennai
CL210(Week Days) :29.04.2016 : Chennai

Exam Calendar Month of April 2016

EX413 :01.04.2016 :Chennai
EX248 :01.04.2016 :Chennai
EX300 :11.04.2016 :Chennai
EX300 :18.04.2016 :Chennai
EX200 :31.04.2016 :Chennai
EX300 :31.04.2016 :Chennai
EX210 :31.04.2016 :Chennai

Exam Result Month of April 2016

RHCSA-EX200   : Apr 29, 2016 : Chennai
RHCE-EX300     : Apr 29, 2016 : Chennai
RHCE-EX300     : Apr 16, 2016 : Chennai
RHCSA-EX200   : Apr 15, 2016 : Chennai

Training calendar Month of March 2016

CL210(Week End)  : 19.03.2016 : Chennai
RH236                      : 19.03.2016 : Chennai
CL210(Week End)  : 20.03.2016 : Chennai
RH236                      : 20.03.2016 : Chennai
CL210(Week Days) : 21.03.2016 : Chennai
CL210(Week Days) : 22.03.2016 : Chennai
CL210(Week Days) : 23.03.2016 : Chennai
CL210(Week Days) : 24.03.2016 : Chennai
CL210(Week End)  : 26.03.2016 : Chennai
RH236                      : 26.03.2016 : Chennai
CL210(Week End)  : 27.03.2016 : Chennai
RH236                      : 27.03.2016 : Chennai

Exam Calendar Month of March 2016

EX413  :01.03.2016 :Chennai
EX248  :01.03.2016 :Chennai
EX300  :11.03.2016 :Chennai
EX300  :18.03.2016 :Chennai
EX200  :31.03.2016 :Chennai
EX300  :31.03.2016 :Chennai
EX210  :31.03.2016 :Chennai

Exam Result Month of March 2016

RHCSA-EX200  : Mar 31, 2016 : Chennai
RHCE-EX300    : Mar 31, 2016 : Chennai
EX210                 : Mar 31, 2016 : Chennai
RHCE-EX300    : Mar 18, 2016 : Chennai
RHCE-EX300    : Mar 11, 2016 : Chennai
RHCE-EX300    : Mar 11, 2016 : Chennai
RHCSA-EX200  : Mar 02, 2016 : Chennai

Training calendar Month of February 2016

RHCE(Week Days)  : 01.2.2016  : Chennai
CL210(Week Days)  : 01.2.2016  : Chennai
RHCE(Week End)   : 06.2.2016  : Chennai
RH236-Chennai       : 09.2.2016  : Chennai
RHCE Chennai        : 15.2.2016  : Chennai

Exam calendar month of February 2016

EX236 : 17.02.2016: Chennai
EX210 : 18.02.2016: Chennai
EX200 : 18.02.2016: Chennai
EX413 : 23.02.2016: Chennai
EX200 : 24.02.2016: Chennai
EX300 : 24.02.2016: Chennai
EX200 : 25.02.2016: Chennai
EX300 : 25.02.2016: Chennai
EX200 : 26.02.2016: Bangalore
EX300 : 26.02.2016: Bangalore
EX200 : 29.02.2016: Chennai

Exam Result Month of February 2016

RHCSA-EX200   : Feb 29, 2016 : Chennai
RHCE-EX300     : Feb 24, 2016 : Chennai
RHCSA-EX200   : Feb 18, 2016 : Chennai
EX210                  : Feb 18, 2016 : Chennai
EX236                  : Feb 17, 2016 : Chennai

Training calendar Month of January 2016

RHCSA & RHCE (Week End)    : 09.01.2016   : Chennai
CL210(Week End)                        : 09.01.2016   : Chennai
CL210(Week End)                        : 10.01.2016   : Chennai
RHCSA & RHCE (Week Days)  : 18.01.2016   : Chennai
CL210(Week End)                        : 23.01.2016   : Chennai
RH413 (Week End)                      : 23.01.2016   : Chennai
CL210(Week End)                       : 24.01.2016    : Chennai
RH413 (Week End)                      : 24.01.2016   : Chennai
RH413 (Week End)                      : 30.01.2016   : Chennai
RH413 (Week End)                      : 31.01.2016   : Chennai

Exam calendar Month of January 2016

EX200 : 28.01.2016: Chennai
EX300 : 28.01.2016: Chennai
EX200 : 28.01.2016: Bangalore
EX300 : 28.01.2016: Bangalore
EX200 : 29.01.2016: Chennai
EX300 : 29.01.2016: Chennai

Exam Result Month of January 2016

RHCE-EX300     : Jan 29, 2016 : Chennai
RHCE-EX300     : Jan 28, 2016 : Chennai
RHCSA-EX200  : Jan 28, 2016 : Chennai

Saturday, August 27, 2016

Docker installation on rhel7



How to install and setup Docker on RHEL 7



How to install and use Docker on RHEL 7 or CentOS 7 (method 1)
The procedure to install Docker is as follows:
  1. Open the terminal application or login to the remote box using ssh command:
    ssh user@remote-server-name
  2. Type the following command to install Docker via yum provided by Red Hat:
    sudo yum install docker
  3. Type the following command to install the latest version of Docker CE (community edition):
    sudo yum remove docker docker-common docker-selinux docker-engine
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum install docker-ce
Let us see all info in details along with examples.

How to install Docker on CentOS 7 / RHEL 7 using yum

Type the following yum command:
$ sudo yum install docker
Install Docker on RHEL 7 using yum command

How to install Docker CE on CentOS 7 (method 2)

First remove older version of docker (if any):
$ sudo yum remove docker docker-common docker-selinux docker-engine-selinux docker-engine docker-ce
Next install needed packages:
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Configure the docker-ce repo:
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
Finally install docker-ce:
$ sudo yum install docker-ce
Install Docker on CentOS 7 using yum command CE Version

How to enable docker service

$ sudo systemctl enable docker.service
Sample outputs:
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

How to start/stop/restart docker service on CentOS7/RHEL7

$ sudo systemctl start docker.service ## <-- Start docker ##
$ sudo systemctl stop docker.service ## <-- Stop docker ##
$ sudo systemctl restart docker.service ## <-- Restart docker ##
$ sudo systemctl status docker.service ## <-- Get status of docker ##

Sample outputs:
List status of Docker on CentOS RHEL server

How to find out info about Docker network bridge and IP addresses

Default network bridge named as docker0 and is assigned with an IP address. To find this info run the following ip command:
$ ip a
$ ip a list docker0

Sample outputs:
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 02:42:cd:c0:6d:4a brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever

How to run docker commands

The syntax is:
docker command
docker command arg
docker [options] command arg
docker help | more

Get system-wide information about Docker

docker info

Getting help

docker help | more
Sample outputs:
Docker help
Run 'docker COMMAND --help' for more information on a command:
docker ps --help
docker cp --help

How to test your docker installation

Docker images are pulled from docker cloud/hub such as docker.io or registry.access.redhat.com and so on. Type the following command to verify that your installation working:
docker run hello-world
Sample outputs:
Run docker hello world for testing

How to search for Docker images

Now you have working Docker setup. It is time to find out images. You can find images for all sort of open source projects and Linux distributions. To search the Docker Hub/cloud for nginx image run:
docker search nginx
Sample outputs:
Docker search image
Click to enlarge

How to install Docker nginx image

To pull an image named nginx from a registry, run:
docker pull nginx
Sample outputs:
Docker pull nginx image (gif)

How to run Docker nginx image

Now you pulled image, it is time to run it:
docker run --name my-nginx-c1 --detach nginx
Say you want to host simple static file hosted in /home/vivek/html/ using nginx container:
docker run --name my-nginx-c2 -p 80:80 -v /home/vivek/html/:/usr/share/nginx/html:ro -d nginx
Where,
  • --name my-nginx-c1 : Assign a name to the container
  • --detach : Run container in background and print container ID
  • -v /home/vivek/html/:/usr/share/nginx/html:ro : Bind mount a volume
  • -p 80:80 : Publish a container's port(s) to the host i.e redirect all traffic coming to port 80 to container traffic
Go ahead and create a file named index.html in /home/vivek/html/:
echo 'Welcome. I am Nginx server locked inside Docker' > /home/vivek/html/index.html
Test it:
curl http://your-host-ip-address/
curl 192.168.122.188

Sample outputs:
Welcome. I am Nginx server locked inside Docker

How to list running Docker containers

docker ps
docker ps -a

Sample outputs:
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                NAMES
bb9d85a56a92        nginx               "nginx -g 'daemon of…"   55 seconds ago       Up 54 seconds       0.0.0.0:80->80/tcp   my-nginx-c2
fe0cdbc0225a        nginx               "nginx -g 'daemon of…"   About a minute ago   Up About a minute   80/tcp               my-nginx-c1
You can use CONTAINER ID to stop, pause or login into the container.

How to run a command in a running container

Run ls /etc/nginx command for my-nginx-c1 container
docker exec fe0cdbc0225a ls /etc/nginx
OR
docker exec my-nginx-c1 ls /etc/nginx
Want to gain bash shell for a running container and make changes to nginx image?
docker exec -i -t fe0cdbc0225a bash
OR
docker exec -i -t my-nginx-c1 bash

How to stop running containers

docker stop my-nginx-c1
OR
docker stopfe0cdbc0225a

How to remove docker containers

docker rm my-nginx-c1
docker ps -a




Networking terms in basic level

Basics of Computer Networking Open system: A system which is connected to the network and is ready for communication. Closed system...