Image

Change Docker’s Data Storage Location on Linux

📘 Overview By default, Docker stores all its images, containers, and volumes under the directory /var/lib/docker. However, you might want to move this directory to another drive or partition — for example: Free up space on your system drive Use a faster SSD Keep Docker data separate from the OS This guide explains how to safely change Docker’s storage path for native Linux installations (not Docker Desktop). 🧭 Table of Contents Stop Docker Service Copy Existing Data (Optional) Configure Docker Daemon Reload and Restart Docker Verify the Change Important Notes Stop Docker Service Before making any changes, stop the Docker daemon to avoid data corruption:

Tạo Docker Image đa kiến trúc với Docker Buildx

Việc xây dựng Docker image đa kiến trúc chủ yếu dựa vào công cụ Docker Buildx. Công cụ này thường được tích hợp sẵn trong các bản cài đặt Docker mới, giúp đơn giản hóa quá trình tạo ra image tương thích với nhiều kiến trúc CPU khác nhau như linux/amd64 và linux/arm64. Quy trình tổng quát để xây dựng Docker image đa kiến trúc với Buildx: 1. Đảm bảo Buildx khả dụng Kiểm tra Buildx có được cài đặt bằng lệnh: