alpine linux fully rootless like junest
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-21 11:42:30 +02:00
alpinest Add bubblewrap backend support with automatic fallback, expose --backend and ALPINEST_BACKEND options, tighten script safety (set -euo pipefail), improve cleanup and identity handling, and update README/Help to document the new backends and browser sandbox notes. 2026-04-21 11:42:30 +02:00
LICENSE Add bubblewrap backend support with automatic fallback, expose --backend and ALPINEST_BACKEND options, tighten script safety (set -euo pipefail), improve cleanup and identity handling, and update README/Help to document the new backends and browser sandbox notes. 2026-04-21 11:42:30 +02:00
README.md Add bubblewrap backend support with automatic fallback, expose --backend and ALPINEST_BACKEND options, tighten script safety (set -euo pipefail), improve cleanup and identity handling, and update README/Help to document the new backends and browser sandbox notes. 2026-04-21 11:42:30 +02:00

🏔️ alpinest

alpinest is a rootless userland Alpine Linux environment, inspired by junest, but based on Alpine instead of Arch.
It lets you run a full Alpine Linux environment from any Linux distribution, with no root privileges required.

✨ Features

  • No installation required: works from a regular user directory.
  • Rootless by default with bubblewrap, with automatic fallback to proot.
  • Fully isolated Alpine Linux environment.
  • Use apk to install packages inside the Alpine root.
  • Supports multiple independent versions side-by-side.
  • Automatically uses your current working directory when launched.

🚀 Quick Start

sudo apt install curl tar bubblewrap proot
git clone https://github.com/vroby65/alpinest.git
cd alpinest
./alpinest

(Optional) Add it to your PATH:

sudo ln -s "$(pwd)/alpinest" /usr/local/bin/alpinest

Make sure /usr/local/bin is in your $PATH.

🧰 Requirements

  • Linux
  • bubblewrap (recommended for GUI and browser sandboxing)
  • proot (fallback when bubblewrap is unavailable)
  • curl
  • tar

📦 Usage

Start the Alpine environment:

./alpinest

Install packages using apk:

apk add git build-base

Exit the environment:

exit

⚙️ Running Commands Without a Shell

You can use alpinest to run a single command directly inside the Alpine environment without launching an interactive shell.

Examples:

alpinest micro
alpinest make build
alpinest bash -c 'echo Hello from Alpine!'

This works similarly to docker run or chroot: the command is executed inside Alpine with your current directory mounted and used as working directory.

If no arguments are given, alpinest will start an interactive shell instead.

🧱 Backends

alpinest supports two execution backends:

  • bubblewrap (bwrap): preferred when available. This backend works much better with graphical applications that require Linux namespaces and sandboxing, including Firefox and Chromium.
  • proot: compatibility fallback for hosts where bubblewrap or unprivileged user namespaces are not available.

By default, alpinest uses bubblewrap automatically when the host supports it.

You can force a backend explicitly:

alpinest --backend bwrap
alpinest --backend proot
ALPINEST_BACKEND=bwrap alpinest firefox

🔒 Security

alpinest is fully rootless — everything runs with your current user permissions. No changes are made outside the Alpine folder.

📁 Directory Structure

  • alpinest — main launcher script
  • .alpinest/ — contains the downloaded Alpine Linux system
  • etc/, tmp/ — optional local customizations

🧪 Use Cases

  • Quickly test scripts or binaries in a clean Alpine environment
  • Build .apk packages without Docker or VMs
  • Try Alpine without affecting your main OS

alpinest provides a minimal Alpine-based environment designed for running CLI and GUI applications in a rootless sandbox. It is ideal for:

  • Running isolated command-line tools
  • Testing graphical applications without polluting the host
  • Building or compiling software in a clean Alpine base
  • Scripting automated workflows with persistent storage

Note: To run graphical applications properly, you must install fonts. For example:

alpinest apk add fontconfig ttf-dejavu

⚠️ Browser Sandbox Notes

Firefox and Chromium generally need the bubblewrap backend to start correctly with their sandbox enabled.

If alpinest falls back to proot, browser startup may still fail or require disabling the browser sandbox manually. On hosts that block unprivileged user namespaces, the bubblewrap backend may also be unavailable.

📄 License

MIT License


alpinest is an independent project and is not affiliated with Alpine Linux or junest.