Docker Security Best Practices for Linux Servers

TL;DR To install Docker on Debian 13, update your package index and install Docker using the official Docker repository: sudo apt update # Update package index. sudo apt install -y ca-certificates curl gnupg # Install necessary packages. ## Add Docker's official GPG key. sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg ## Set up the Docker repository. echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update # Update package index again. sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # Install Docker. User Management Add your user to the docker group to run Docker commands without sudo: ...

December 24, 2025 · 10 min · Local AI Ops

Hardening LXC/LXD Containers on Debian

TL;DR To harden LXC/LXD containers on Debian 13, follow these essential steps: Update System Packages: Ensure your system is up-to-date to mitigate vulnerabilities. sudo apt update && sudo apt upgrade -y # Update package lists and upgrade installed packages Use Unprivileged Containers: Create unprivileged containers to limit the impact of potential security breaches. ...

September 24, 2025 · 10 min · Local AI Ops
Buy Me A Coffee