Helper scripts for the Linux Isolation Learning project.
Validates that your devcontainer (or Linux environment) is properly configured for the tutorials.
Usage:
bash scripts/validate-devcontainer.shWhat it checks:
- System tools (unshare, nsenter, lsns, ip, iptables, etc.)
- Namespace support (PID, UTS, IPC, mount, network, user)
- Cgroup v2 availability and controllers
- Network capabilities (creating namespaces, veth pairs, iptables rules)
- Project build success
Exit codes:
0: All checks passed1: One or more checks failed
For detailed validation steps and troubleshooting, see ../.devcontainer/validation.md.
When adding new utility scripts:
- Make them executable:
chmod +x scripts/your-script.sh - Add a shebang:
#!/bin/bashor#!/usr/bin/env bash - Add usage documentation to this README
- Consider adding
set -eto fail on errors - Provide helpful error messages