fbpx Integrate Jenkins, Docker, Kubernetes with Linux: Guide | Certificação Linux

Integrating DevOps Tools with Linux: Jenkins, Docker, Kubernetes

📅 07/19/2026 ⏱ 3 min ✍️ Uira Ribeiro
Integrating DevOps Tools with Linux: Jenkins, Docker, Kubernetes
Exam Pass App — mais de 7.000 questões LPI, offline, em 5 idiomas, disponível no Android e na App Store
Available on
Google Play
Available on
App Store

Introduction

The integration of DevOps tools such as Jenkins, Docker, and Kubernetes with Linux systems is crucial for optimizing development and operations processes. This article solves the problem of how to integrate these tools efficiently and practically.

Jenkins Configuration on Linux

Jenkins is a continuous integration (CI) and continuous delivery (CD) automation tool. Let's configure it on Linux.

Jenkins Installation

First, we need to install Jenkins. On Ubuntu/Debian, run:

# Atualizar lista de pacotes\nsudo apt update\n\n# Instalar OpenJDK\nsudo apt install openjdk-11-jdk -y\n\n# Adicionar chave GPG do Jenkins\nwget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -\n\n# Adicionar repositório do Jenkins\nsudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable/ binary/ > /etc/apt/sources.list.d/jenkins.list'\n\n# Atualizar lista de pacotes novamente\nsudo apt update\n\n# Instalar Jenkins\nsudo apt install jenkins -y

After installation, start Jenkins:

# Iniciar Jenkins\nsudo systemctl start jenkins\n\n# Habilitar Jenkins para iniciar na inicialização\nsudo systemctl enable jenkins

Accessing Jenkins

Jenkins will be accessible at http://seu-ip:8080. Get the initial password at:

# Localizar senha inicial\nsudo cat /var/lib/jenkins/secrets/initialAdminPassword

Using Docker on Linux

Docker is a platform for developing, shipping, and running applications in containers.

Docker Installation

On Ubuntu/Debian, run:

# Atualizar lista de pacotes\nsudo apt update\n\n# Instalar dependências\nsudo apt install apt-transport-https ca-certificates curl software-properties-common -y\n\n# Adicionar chave GPG do Docker\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n\n# Adicionar repositório do Docker\nsudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"\n\n# Atualizar lista de pacotes novamente\nsudo apt update\n\n# Instalar Docker\nsudo apt install docker-ce -y

Running a Docker Container

Run a Hello World container:

# Executar contêiner Hello World\nsudo docker run hello-world

Kubernetes Configuration on Linux

Kubernetes is a container orchestration platform.

Kubernetes Installation

On Ubuntu/Debian, run:

# Instalar dependências\nsudo apt-get update && sudo apt-get install -y apt-transport-https curl\n\n# Adicionar chave GPG do Kubernetes\ncurl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -\n\n# Adicionar repositório do Kubernetes\nsudo bash -c 'cat <<EOL>>/etc/apt/sources.list.d/kubernetes.list\ndeb https://apt.kubernetes.io/ kubernetes-xenial main\nEOL'\n\n# Atualizar lista de pacotes novamente\nsudo apt-get update\n\n# Instalar kubectl, kubelet e kubeadm\nsudo apt-get install -y kubectl kubelet kubeadm\n\n# Evitar atualizações do kubelet e kubeadm\nsudo apt-mark hold kubelet kubeadm kubectl

Initializing a Kubernetes Cluster

Initialize a Kubernetes cluster:

# Inicializar cluster\nsudo kubeadm init --pod-network-cidr=10.244.0.0/16\n\n# Configurar kubectl para usar o cluster\nmkdir -p $HOME/.kube\nsudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config\nsudo chown $(id -u):$(id -g) $HOME/.kube/config\n\n# Instalar rede do Flannel\nkubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

Why This Matters / When to Use

Why This Matters: The integration of these tools enables automation and optimization of development and operations processes, resulting in faster and more reliable deliveries.

When to Use: Use Jenkins for CI/CD pipelines, Docker for application containerization, and Kubernetes for container orchestration in production environments.

Connection to LPI/CompTIA Certifications

Mastering the integration of DevOps tools with Linux systems is crucial for certifications such as LPI and CompTIA. These certifications validate your skills in Linux and DevOps, making you more competitive in the job market.

Uira Ribeiro

Prof. Uirá Ribeiro

Chair do Board do Linux Professional Institute

After years of watching professionals waste hours on simple tasks because they didn't know the right Linux tools, I decided to teach.
Today I'm the author of most of LPI's official Learning Materials and mentor to over 14,000 certified students.

See my full story →

That was just one piece. The course teaches the whole path — from your first command to exam day.

Certificação Linux — a plataforma líder em certificações Linux no Brasil
WhatsApp