Aya DevContainer
A pre-configured Docker dev container for writing eBPF programs in Rust with Aya.
What it is
Aya DevContainer is a Docker-based development environment for building eBPF
programs in Rust with Aya. eBPF
tooling like bpf-linker targets Linux x86_64, which makes local
setup awkward on other platforms. This container ships the right Linux
environment and build tools so you can skip the manual dependency wrangling
and start writing probes.
What's included
- A
.devcontainer/devcontainer.jsonfor VS Code Dev Containers - A custom
Dockerfilewith the eBPF/Rust build toolchain - Support for scaffolding new apps from the
aya-template
How to use it
Install the Dev Containers extension in VS Code, open the command palette, and choose Dev Containers: Reopen in Container. Once inside, generate and build an eBPF app:
cargo generate https://github.com/aya-rs/aya-template
cd <your_app_path>
cargo xtask build Why use it
Setting up an eBPF toolchain from scratch is fiddly and platform-specific. A reproducible dev container gives everyone on the project the same working environment, so you can focus on the kernel-side logic instead of fighting your local setup.