Fading Coder

One Final Commit for the Last Sprint

Docker Container Development: Virtualization

Docker's core value lies in virtualization, or more specifically, environment isolation. Through virtualization technology, Docker implements virtual environments that solve dependency issues in configuration and deployment, enabling decoupling. My understanding of virtualization comes from "O...

Docker Daemon Configuration and Image Management Essentials

Docker leverages specific Linux kernel features to provide an isolated and resource-managed environment for applications. Key among these are Namespaces and Cgroups. Namespaces are responsible for isolating resources like CPU, memory, and network, ensuring that containers operate independently witho...

Building Docker Images Without Cache: A Technical Guide

Understanding Docker's Build Cache Mechanism Docker's caching mechanism significantly optimizes image builds by reusing unchanged layers, which reduces storage requirements and build times. However, effectively utilizing this cache requires understanding its behavior and limitations. Cache Behavior...

Refactoring Code: Choosing Functions Over Object-Oriented Structures in Go

Recently I needed to write a new business module that closely resembled one I had written two years ago in Go. I initially planned to adopt the old code, but it turned out to be too tightly coupled to its original context. Small modificasions wouldn’t cut it, so I decided to refactor the core logic....

Installing Docker CE on CentOS 7 via YUM Repository Configuration

System Prerequisites Verification Prior to installation, verify the operating system release to ensure compatibility, as Docker requires a CentOS 7 environment or newer. This can be checked using the following command: lsb_release -a Additionally, the system architecture must be 64-bit with a kernel...

Copying Files from Docker Containers to the Host

When building Docker images, there are scenarios where you need to copy files from a Docker container to the host machine's external enviroment. This is commonly required for extracting data, configuraton files, or other artifacts produced inside a container. This article explains how to copy files...

Deploying and Configuring Nacos Using Docker

Pull Nacos Image Retrieve the official Nacos server image from Docker Hub. podman pull nacos/nacos-server Run Nacos Container Launch a standalone instance mapped to host port 8848: podman run -d -p 8848:8848 -e MODE=standalone --name nacos_svr nacos/nacos-server:latest To connect Nacos to an externa...

Building a Log Management System with Elastic Stack

Elastic Stack Components The Elastic Stack (commonly referred to as ELK) consists of three core components: Elasticsearch: Distributed search and analytics engine for storing and querying log data Logstash: Data processing pipeline for collecting, parsing, and transforming logs Kibana: Visualization...

Essential Docker Commands and Concepts

Installation Before using Docker, you need to install it on your system. For Debian-based distributions like Ubuntu, you can use the official installation script. curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh Core Container Operations Listing Containers To view currently r...

Docker Runtime Installation and Image Management on Linux

Containers represent a OS-level virtualization method enabling isolated application environments. Unlike hardware virtualization, containers share the host kernel while maintaining process isolation through kernel features. Key differentiators from hypervisor-based virtualization: Initialization tim...