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

Securing Docker Containers on Debian

TL;DR To secure Docker containers on Debian 13, follow these essential steps: Install Docker securely: Ensure you install Docker from the official Debian repositories to avoid vulnerabilities in third-party packages. sudo apt update sudo apt install docker.io ``` For comprehensive guidance on container security, see our detailed guide on Rootless Docker Deployment For Safer Workloads. For comprehensive guidance on container security, see our detailed guide on Restricting Container Capabilities With Seccomp Profiles. For comprehensive guidance on container security, see our detailed guide on Using Gvisor Or Kata Containers For Isolation. Limit container privileges: Always run containers with the least privileges necessary. Use the --cap-drop option to drop unnecessary capabilities. ...

August 13, 2025 · 11 min · Local AI Ops
Buy Me A Coffee