| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A tiny container CLI powered by containerd and runc.
🔥 No Docker daemon needed — just containerd (system service) + Linux namespaces.
# Install containerd + runc (Ubuntu/Debian example)
sudo apt update && sudo apt install -y containerd runc
# Clone & build boxy
git clone https://github.com/arnab2001/boxy.git
cd boxy && go build -o boxy ./cmd/boxy
# Pull an image
sudo ./boxy pull nginx
# Run a container with port forwarding
sudo ./boxy run --name web -p 8080:80 nginx
# Access your container
curl http://localhost:8080
# List containers
sudo ./boxy ps
# Stop and remove
sudo ./boxy stop web
sudo ./boxy rm webDownload & unpack an image into containerd.
boxy pull nginx:1.27# Basic container
boxy run --name api alpine # /bin/sh
# Background container
boxy run -d --name redis redis:7 # background
# Port forwarding examples
boxy run --name web -p 8080:80 nginx # TCP (default)
boxy run --name app -p 3000:3000/tcp -p 5353:53/udp app # Multiple ports
boxy run --name db -p 127.0.0.1:5432:5432 postgres # Bind to specific IPPort Publishing Syntax:
Shows running/stopped containers.
NAME STATE PID IMAGE web RUNNING 2419 docker.io/library/nginx:latest redis STOPPED - docker.io/library/redis:7
Graceful shutdown with automatic network cleanup.
boxy stop redis 5sRemove container and snapshot with network cleanup.
boxy rm web
boxy rm -f redis # force kill firstBoxy uses CNI (Container Network Interface) for networking with automatic port forwarding via iptables.
# Download and install CNI plugins
wget https://github.com/containernetworking/plugins/releases/download/v1.4.1/cni-plugins-linux-amd64-v1.4.1.tgz
sudo mkdir -p /opt/cni/bin
sudo tar -xzf cni-plugins-linux-amd64-v1.4.1.tgz -C /opt/cni/binBoxy automatically creates a bridge network (boxy0) with:
Run boxy without root privileges:
# Rootless mode (experimental)
./boxy run --name app -p 8080:80 nginxRootless Limitations:
boxy CLI │ gRPC ▼ containerd (system daemon) │ fork/exec ▼ runc → Linux namespaces, cgroups │ ▼ CNI plugins → bridge + iptables (port forwarding)
| Priority | Status | Planned feature |
|---|---|---|
| ⭐⭐⭐ | ✅ | -p HOST:CONT via CNI bridge + portmap |
| ⭐⭐⭐ | 🔄 | logs <name> (stream stdout/stderr of detached containers) |
| ⭐⭐ | 📋 | BuildKit integration (boxy build -t myapp .) |
| ⭐ | 📋 | Push / login to a local registry (registry:2 or ORAS) |
| ⭐ | 📋 | Volume mounts and bind mounts |
Legend: ✅ Complete | 🔄 In Progress | 📋 Planned
# Run all tests
cd test && go test -v .
# Run benchmarks
go test -bench=.
# Run with coverage
go test -cover .MIT License - see LICENSE for details.
| Back | FazBrowse Home | New Git URL |