How to install Kubernetes on Ubuntu 18.04 Bionic Beaver Linux

Objective

To install kubernetes on ubuntu, the objective is to install Kubernetes on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver Linux
  • Software: – Kubernetes v1.10.0

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Scenario

In this guide we will be configuring the simplest possible Kubernetes cluster consisting of two nodes. The first node with hostname kubernetes-master will act as the master node.

The second node with hostname kubernetes-master also running Ubuntu 18.04 will be a slave node simply joining the Kuberneets cluster. Once we get the Kubernetes cluster up and running as a proof of concept we will deploy a Nginx server container.

Conventions

Read more

Dockerfile vs. Docker Compose: Understanding the Differences and Use Cases

Dockerfile vs. Docker Compose: Understanding the Differences and Use Cases

Docker has revolutionized containerization, providing powerful tools for building and managing containerized applications. Two core concepts in Docker are Dockerfile and Docker Compose. While both are essential, they serve different purposes. A Dockerfile is used to define a single container image, whereas Docker Compose simplifies managing multi-container applications.

Read more

Syncing Files with Docker-Compose Watch

When using Docker to create portable and easy reproducible development environments, we need to found a way to make changes to our codebase, immediately effective inside containers, without the need to re-build them each time. A possible solution consists into mounting host directories directly inside containers; this, however, requires breaking containers isolation and portability, since they become dependant on the host directory structure. To solve this problem, we can use docker-compose watch.

Read more

Docker Container Vulnerability Scanning Tools

Docker Container Vulnerability Scanning Tools

In today’s cloud-native and microservices-oriented world, Docker has become a cornerstone for developing, shipping, and running applications anywhere. However, with great flexibility comes great responsibility, especially regarding security. This article delves into various tools for scanning Docker container vulnerabilities, ensuring that your applications remain secure and compliant.

Read more

How to Add a Sql User in a Docker Container

How to Add a Sql User in a Docker Container

In this article, we’ll explore the steps needed to add a SQL user in a Docker container. Working with databases inside Docker can significantly enhance your development workflow by encapsulating your database environment, making it reproducible and easy to manage. We will cover different SQL database types, namely MySQL, PostgreSQL, and Microsoft SQL Server (MSSQL), allowing you to choose based on your suite of tools.

Read more

How to Network Connect Two Containers With Docker-compose

How to Network Connect Two Containers With Docker-compose

Networking is one of the fundamental aspects of working with containers in Docker. Using Docker Compose, you can easily connect multiple containers and manage complex applications comprised of several services. In this article, we will explore how to connect two containers using Docker Compose effectively. By the end, you will have a clear understanding of how to define networks in your configuration and enable seamless communication between your services.

Read more

Docker Basic Commands on Linux

Docker Basic Commands on Linux

Docker is an essential tool for developers and system administrators working with containerized applications. This guide provides a comprehensive overview of Docker’s basic commands on Linux, covering everything from creating and managing containers to troubleshooting common issues.

Read more

Bash Function to Sort Docker Ps Output

Bash Function to Sort Docker Ps Output

Sorting the output of docker ps can be helpful when you’re managing multiple containers and need a clearer view of what’s running. In this tutorial, we’ll walk through creating a Bash function that organizes this output in a more readable way using built-in shell tools like awk and sort.

Read more

Docker Run With Logs – Capturing and Debugging Output

Docker Run With Logs – Capturing and Debugging Output

Logs are an invaluable aspect of troubleshooting and debugging Docker containers. When running applications within Docker, capturing logs efficiently allows developers to diagnose issues quicker and remediate them effectively. In this article, we will explore various methods to capture and analyze logs from Docker containers to gain insights into their behavior and resolve any arising issues.

Read more

Dockerfile Build – Best Practices & Errors

Dockerfile Build – Best Practices & Errors

Docker has revolutionized application deployment by enabling consistent environments across development and production. At the heart of Docker is the Dockerfile, a script containing instructions to build an image. However, creating efficient Dockerfiles requires understanding certain best practices and avoiding common pitfalls. This tutorial will guide you through Dockerfile optimization techniques and help you troubleshoot common errors.

Read more

What is Docker Pull Command?

What is Docker Pull Command?

The Docker pull command is one of the essential commands that allows users to download container images from a registry to their local machine. This command is often the first step in the container deployment workflow, enabling developers to retrieve pre-built images before running containers. As part of the core set of Docker basic commands, understanding how to effectively use the docker pull command is essential for anyone working with containerized applications.

Read more