Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.83 KB

File metadata and controls

48 lines (32 loc) · 1.83 KB

Alpine Linux

Alpine Linux is a Linux distribution designed to be small, simple and secure. Alpine Linux uses musl, BusyBox and OpenRC instead of the more commonly used glibc, GNU Core Utilities and systemd respectively.

wikipedia.org/wiki/Alpine_Linux

alpine linux logo

How to use this Makejail

Alpine Linux is a generic jail, so AppJail does not know which modules to use, so we need to manually load them before creating the jail.

kldload linux linux64 fdescfs tmpfs linprocfs linsysfs pty

Note: Use loader.conf(5) to load them at startup.

Open a shell and run appjail makejail:

appjail makejail \
    -j alpine \
    -f gh+AppJail-makejails/alpine-linux \
    -o template=/usr/local/share/examples/appjail/templates/linux.conf \
    -o alias \
    -o virtualnet=":appjail0 default" \
    -o nat

Tip: Read Alias & Virtual Networks to see how to create the appjail0 interface.

After Makejail builds the jail, you can run Alpine Linux using the alpine_shell custom stage:

appjail run -s alpine_shell alpine

Arguments

  • alpine_linux_tag (default: latest): see #tags.
  • alpine_linux_ajspec (default: gh+AppJail-makejails/alpine-linux): Entry point where the appjail-ajspec(5) file is located.

Tags

Tag Arch Type alpine_linux_major alpine_linux_minor alpine_linux_patch_level alpine_linux_arch
latest amd64 generic 3 22 1 x86\_64