33.3 Ubuntu Jail
Build the Base System
# Create the Ubuntu Jail root directory
# mkdir -p /usr/jails/ubuntu
# Install Ubuntu Jammy system into the Jail using debootstrap, specifying the mirror
# debootstrap jammy /usr/jails/ubuntu https://mirrors.ustc.edu.cn/ubuntu/Manage Mount Files
devfs /usr/jails/ubuntu/dev devfs rw 0 0
tmpfs /usr/jails/ubuntu/dev/shm tmpfs rw,size=1g,mode=1777 0 0
fdescfs /usr/jails/ubuntu/dev/fd fdescfs rw,linrdlnk 0 0
linprocfs /usr/jails/ubuntu/proc linprocfs rw 0 0
linsysfs /usr/jails/ubuntu/sys linsysfs rw 0 0
/tmp /usr/jails/ubuntu/tmp nullfs rw 0 0Manage the Jail Configuration File
Allow Network Access
Start the Ubuntu Jail Instance
Update the Ubuntu System
References
Last updated