Learn how to send OS-level data into Elasticsearch (the Elastic Stack).
Also find me here:
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Baeldung on Ops
- All
- Docker (60)
- Jenkins (22)
- Git (11)
- Kubernetes (7)
- Logging (2)
- Deployment Tools (2)
- Series (1)
- Processes (1)
- Networking (1)
- DevOps (1)
- Cloud (1)
Docker Guide
A collection of tutorials on Docker
How to Troubleshoot and Resolve Jenkins “Pending – Waiting for Next Executor” Issue?
Filed under Jenkins
Explore various steps for troubleshooting the Jenkins “Pending – Waiting for Next Executor” issue.
How to Stop/Pause a Pod in Kubernetes
Filed under Kubernetes
Learn to stop a pod in Kubernetes using the kubectl delete command.
Sort Pods by Age in Kubernetes
Filed under Kubernetes
Learn how to fetch Kubernetes pod details in the ascending and descending orders of their creation time.
Understanding Git’s fork and clone Operations
Filed under Git
Find out the differences between two seemingly similar Git operations – fork and clone.
Creating Kafka Topic With Docker Compose
Filed under Docker
Learn how to create a Kafka topic using Docker Compose.
Introduction to the Pants Build Tool
Filed under DevOps
Learn the basic functionality of the Pants build tool and understand its usage.
How to Get the List of Dependent Child Images in Docker
Filed under Docker
Learn how to get the list of dependent child images of a Docker image.
Sidecar vs. Init Container in Kubernetes
Filed under Processes
Learn the differences between sidecar and init containers.
Introduction to Docker Buildx
Filed under Docker
Explore Docker buildx, a tool that extends the building and managing abilities of Docker images.
Get Current Image of Kubernetes Deployment
Filed under Kubernetes
Learn how to get info for a Kubernetes deployment on Linux.
Automatically Starting Services in a Docker Container
Filed under Docker
Learn how to start Docker container services automatically.
Change Date Inside a Docker Container
Filed under Docker
Explore various ways to change the date and time of a Docker container.
Difference Between Openjdk Docker Images: Slim vs Slim-Stretch vs Stretch vs Alpine
Filed under Docker
Learn about the differences between various Docker images of OpenJDK.
Skip a Stage in a Jenkins Pipeline
Filed under Jenkins
Explore different solutions for skipping stages in a Jenkins-scripted pipeline.
Lightweight Kubernetes Distributions
Filed under Kubernetes
Learn about different lightweight distributions of Kubernetes and when to use them.
Difference Between Deployment and ReplicaSet in Kubernetes
Filed under Kubernetes
Learn about Kubernetes Deployment and ReplicaSet features, advantages, use cases, and their key differences.
Setting the User in a Docker Container From the Host
Filed under Docker
Learn how to set a user in a Docker container from the host.
Copy Variables Between Stages in a Multi Stage Docker Build
Filed under Docker
Learn different methods to copy variables between stages in a multi-stage Docker build.
Running Stages in Parallel With Jenkins Workflow / Pipeline
Filed under Jenkins
Learn how to run multiple stages in parallel with a Jenkins workflow or pipeline job.
How to Use –init Parameter in Docker Run Command
Filed under Docker
Learn how to use the –init parameter in the Docker run command.
Service Profiles in Docker
Filed under Docker
Learn how to use service profiles in Docker.
Get the Output of a Shell Command in a Jenkins Pipeline
Filed under Jenkins
Explore two different methods for capturing the output of a shell command executed in the Jenkins pipeline into a variable.
Securing Passwords in Docker
Filed under Docker
Explore several methods to secure passwords in Docker, including using environment variables, a secret management system, and a key management system.
Enable BuildKit with Docker Compose
Filed under Docker
Learn how to enable BuildKit with Docker Compose.
How to Stop a Zombie Job on Jenkins Without Restarting the Server?
Filed under Jenkins
Learn how to stop a zombie job on Jenkins.
Jenkins Pipeline – Change to Another Folder
Filed under Jenkins
Learn how to change the working directory in a Jenkins pipeline.
Fixing the “No Such DSL method” Error in Jenkins Pipeline
Filed under Jenkins
Learn how to fix the “No such DSL method” error in Jenkins Pipeline.
How to Get the API Token for Jenkins
Filed under Jenkins
Learn how to generate and use an API token in Jenkins.
What is the Default WORKDIR in a Dockerfile?
Filed under Docker
Learn about the default value of the WORKDIR instruction in Docker.
Trigger Another Job from a Jenkins Pipeline
Filed under Jenkins
Learn how to create a job that internally triggers another job in Jenkins.
Run Multiple Commands in Docker Run
Filed under Docker
Learn how to run multiple commands on the startup of a Docker container.
Fixing Git ‘remote: Repository not found’ Error
Filed under Git
A quick and practical guide to fixing “Repository not found.” git errors.
Update Jenkins from WAR
Filed under Jenkins
Learn how to update Jenkins with the Jenkins WAR file.
How to Sync a Forked Repository on GitHub
Filed under Git
Learn how to sync a fork with its original repository using both GitHub’s web UI and the command line.
How to Run TestNG Tests on Jenkins
Filed under Jenkins
Learn the steps needed to run TestNG tests on Jenkins.
Exclude a Sub-Folder When Adding a Volume to Docker
Filed under Docker
Learn how to exclude folders when mounting volumes with some Docker Compose examples
Enable HTTPS in Jenkins
Filed under Jenkins
Learn how to secure Jenkins with HTTPS, SSL, and a proxy.
How to Clone a Jenkins Job
Filed under Jenkins
Learn how to clone a Jenkins job.
Keep Subdirectory Structure in Dockerfile Copy
Filed under Docker
Learn to copy a directory into a Docker image preserving the subdirectory structure.
Updating PATH Environment Variable in Dockerfile
Filed under Docker
Learn how to update the PATH variable in Docker.
Assign Static IP to Docker Container and Docker-Compose
Filed under Docker
Learn how Docker manages IP allocation and how to add a static address to a container.
Adding a Comment in a Dockerfile
Filed under Docker
Learn how to add comments in a Dockerfile.
Rebuild Docker Container in Docker Compose
Filed under Docker
Learn how to rebuild a container independently from the others with docker-compose.
Export/Import Jobs in Jenkins
Filed under Jenkins
Learn how to export and import Jenkins jobs.
Mounting Multiple Volumes on a Docker Container
Filed under Docker
Learn how to mount multiple volumes on a Docker container with the command line and with Docker Compose
Executing Multiple Commands in Docker Compose
Filed under Docker
Learn about ways to execute multiple commands with Docker Compose.
Override CMD When Running a Docker Image
Filed under Docker
Learn about ways to override the Dockerfile CMD when running a Docker image.
Interactive Shell Using Docker Compose
Filed under Docker
Learn how to get an interactive shell and interface Docker containers with it.
Find the Differences Between Two Git Branches
Filed under Git
Learn methods of finding the differences between Git branches on Linux.
Communication Between Multiple Docker Compose Projects
Filed under Docker
Learn how to use a network to connect multiple Docker Compose projects with some docker-compose.yml examples
Modify a Specified Commit in Git
Filed under Git
A quick and practical guide to modifying a git commit.
Difference Between links and depends_on in Docker Compose
Filed under Docker
Learn the difference between Docker links and depends_on with some practical examples using Docker Compose
Root User and Password Inside a Docker Container
Filed under Docker
Learn how to run commands inside a Docker container with different users.
How to Modify Git Commit Messages
Filed under Git
Learn how to modify Git commit messages.
Share Volume Between Multiple Containers in Docker Compose
Filed under Docker
Learn how to share Docker containers’ data using volumes
A Guide to Docker Private Registry
Filed under Docker
Learn how to set up a private Docker registry, and push/pull images.
Difference Between docker stop and docker kill Commands
Filed under Docker
Explore the difference between the execution of the docker stop and the docker kill command.
A Guide to Docker Logs
Learn different ways to monitor the logs of a container.
Difference Between Docker-Compose and Kubernetes
Filed under Docker, Kubernetes
Learn some of the differences between Docker Compose and Kubernetes using a simple example
Difference Between git merge and rebase
Filed under Git
Explore the basic difference between git merge and git rebase which every developer should know while working with git VCS.
A Guide to Tag in Docker
Filed under Docker
Learn how to create and manage tags in Docker.
Configuring a Proxy in Docker
Filed under Docker
Learn how to set up a proxy in Docker.
Reduce Build Context for Docker Build Command
Filed under Docker
Learn about the concept of the build context in Docker.
Difference Between Running and Starting a Docker Container
Filed under Docker
Learn how the Docker run and start commands are different while going through some practical examples
Get Environment Variable from Docker Container
Filed under Docker
Learn how to retrieve all the environment variables from a Docker container.
Docker: “build” Requires 1 Argument Error
Filed under Docker
Learn about the issues related to the Docker build command.
Caching Maven Dependencies with Docker
Filed under Docker
Learn how to build Maven projects in Docker
Difference Between assume-unchanged and skip-worktree in Git
Filed under Git
Learn the differences between the —assume-unchanged and —skip-worktree options of Git’s update-index command.
Cannot Connect to a Docker Daemon
Filed under Docker
Learn about the frequently encountered Docker daemon connectivity issue.
How to Include Files Outside of Docker’s Build Context
Filed under Docker
By default, Docker expects to find all files for a build in the vicinity of the Dockerfile. We look at some options for pulling files from other parts of the filesystem, allowing us to split our Docker scripts from their dependencies.
Reset/Disable Jenkins Security Settings From Command Line
Filed under Jenkins
Learn about different approaches to regain access to the Jenkins console after losing the password.
Assigning a Port Mapping to a Running Docker Container
Filed under Docker, Networking
When running a Docker container we can set a port mapping to allow communication through the host. This usually is fixed for the lifetime of the container. We explore some strategies for changing the port mapping for an existing container.
Remove a Large File from Commit History in Git
Filed under Git
Learn how to remove large files from the commit history of a git repository using various tools.
How to Run a Cron Job Inside a Docker Container?
Filed under Docker
A quick and practical guide to running CRON jobs in a Docker container.
Removing Docker Containers
Filed under Docker
Learn why it is necessary to remove Docker containers.
How to Get Docker-Compose to Always Use the Latest Image
Filed under Docker
In this tutorial, we’ll check out several options to ensure that docker-compose always uses the latest images of the applications.
States of a Docker Container
Filed under Docker
Explore different states of a Docker container.
Share Docker Images Without Using the Docker Hub
Filed under Docker
Learn about the Docker save and load commands and how to transfer a Docker image using these commands.
Undo and Revert Commits in Git
Filed under Git
Learn the safest way to undo or revert commits in a Git repository.
Understanding Detached HEAD in Git
Filed under Git
Explore what a detached HEAD in Git is and how it works.
Setting Up a Jenkins Slave Node
Filed under Jenkins
Understand the concept of distributed builds in Jenkins Architecture and how we can configure Jenkins master-slave architecture.
Kubernetes Deployment vs. StatefulSets
Filed under Cloud, Kubernetes
In this tutorial, we’ll discuss two different ways to deploy our application(pods) on Kubernetes using two resources provided by Kubernetes: Deployment and StatefulSet.
Expose More Than One Port With Docker
Filed under Docker
Learn how to declare more than one port to expose and how to bind the exposed ports with the ports of the host computer
Guide to Jenkins Architecture and Performance Improvements
Filed under Jenkins
Learn how we can configure Jenkins to improve its performance.
Attach and Detach From a Docker Container
Filed under Docker
A Docker container can be run either attached to or detached from the terminal that launched it. We look at how to launch containers and how to retrospectively attach to running containers or detach the terminal without terminating them.
Tips for Creating Efficient Docker Images
Filed under Docker
Learn how to write efficient Docker images and the reasons behind each recommendation
How the Docker Build Cache Works and When Not to Use It
Filed under Docker
Learn about the docker build cache and how to control it.
Using docker-compose With Private Repositories
Filed under Docker
Learn how docker-compose can access private repositories using the docker login command.
How to Set Environment Variables in Jenkins?
Filed under Jenkins
Learn about the different ways to set and use environment variables in Jenkins.
PostgreSQL with Docker Setup
Filed under Docker
Learn how to install the PostgreSQL database using the Docker container.
An Introduction to Kaniko
Filed under Docker
Learn how to build container images using Kaniko.
Exploring a Docker Container’s Filesystem
Filed under Docker
Learn various ways to explore the filesystem of a Docker container
Getting Into a Docker Container’s Shell
Filed under Docker
Learn how to connect to a shell of a running Docker container and how to start containers interactively
Difference Between Docker Images and Containers
Filed under Docker
Learn about Docker images and containers.
Implement Health Checks in OpenShift
Filed under Deployment Tools
Learn what it means to have a healthy application and how to do it in OpenShift.
An Introduction to Podman
Filed under Docker
Learn the basis to interact with Podman – an open-source container management tool for developing, managing and running OCI containers.
Introduction to Netflix Genie
Filed under Docker
Gain an insight into Netflix Genie
Run Gatling Tests From Jenkins
Filed under Jenkins
Learn how to insert load tests performed with Gatling into a Jenkins pipeline.
Intro to Spinnaker
Filed under Deployment Tools
A quick and practical introduction to Spinnaker – an open-source continuous delivery platform.
Scheduling a Job in Jenkins
Filed under Jenkins
A quick and practical example of various ways of Jenkins job scheduling.
Configure Jenkins to Run and Show JMeter Tests
Filed under Jenkins
Learn how to set up a simple continuous delivery environment to run and show Apache JMeter tests in Jenkins.
Simple Jenkins Pipeline with Marathon and Mesos
Filed under Jenkins
Implementing a simple Continuous Delivery pipeline with Jenkins, Marathon and Mesos.