Cicd documentation layout


Basic Docker Architecture



Download 6.25 Mb.
Page26/39
Date15.06.2023
Size6.25 Mb.
#61535
1   ...   22   23   24   25   26   27   28   29   ...   39
CIcd

8.5. Basic Docker Architecture:


Docker Daemon:

  • Docker client talks to the Docker Daemon.

  • Docker Daemon runs on a host machine and does all the heavy lifting required

  • A user does not directly interact with a Daemon


Running a Docker Container:

  • Simple Thread

  • Interactive Shell

  • As background process (as a Daemon)

8.6. Docker Installation in linux:


Run below command to install
[root@cicd opt] # yum install docker -y
[root@cicd opt] # docker –version
[cicdapiadmin@cicd opt] $ sudo service docker start
Run below commands to Auto restart Docker at the time of VM restart
[cicdapiadmin@cicd opt] $ sudo chkconfing docker on

8.7. Cofiguring Docker with Jenkins:


Adding Jenkins user to the group & giving permissions to Docker sock
[cicdapiadmin@cicd opt] $ sudo usermod -a -G docker jenkins
[cicdapiadmin@cicd opt] $ sudo chmod 666 /var/run/docker.sock

9. KUBERNETES

9.1. Introduction to Kubernetes:


  • Kubernetes(K8s) is an open-source container-orchestration system for automating application deployment, scaling, and management.

  • The name Kubernetes originates from Greek, meaning helmsman or pilot. It was founded by Joe Beda, Brendan Burns and Craig McLuckie who were quickly joined by other Google engineers including Brian Grant and Tim Hockin and was first announced by Google in mid-2014.

  • Kubernetes development and design are heavily influenced by Google's Borg system Kubernetes system is implemented in Go.

  • It was originally designed by Google, and is now maintained by the Cloud Native Computing Foundation

9.2. Why Containers?


  • Containers on the same OS kernel are lighter and smaller.

  • It takes less time to start container.

  • Better resource utilization compared to VMs

  • Boot-up process is short and takes few seconds


  • Download 6.25 Mb.

    Share with your friends:
1   ...   22   23   24   25   26   27   28   29   ...   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page