GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
APPJAIL-OCI(1) FreeBSD General Commands Manual APPJAIL-OCI(1)

appjail-ociCommands for interpreting OCI images

appjail oci del-env jail name

appjail oci del-user jail

appjail oci del-workdir jail

appjail oci exec [-d] [[-e name[=value]] ...] [-u user] [-w workdir] jail [command [args ...]]

appjail oci from image jail [options ...]

appjail oci get-container-name jail

appjail oci get-env jail name

appjail oci get-pid jail

appjail oci get-user jail

appjail oci get-workdir jail

appjail oci kill [-s signal] jail

appjail oci ls-env jail

appjail oci mount jail

appjail oci run [-d] [[-e name[=value]] ...] [[-o option] ...] [-u user] [-w workdir] image jail [command [args ...]]

appjail oci set-boot [off|on] jail

appjail oci set-container-name container-name jail

appjail oci set-env jail name [value]

appjail oci set-user jail user

appjail oci set-workdir jail workdir

appjail oci umount jail

The utility provides support for interpreting OCI images, this includes creating a jail using an image, executing the process defined by the image, and so on.

The options are as follows:

jail name
Removes a user-defined environment variable that was previously specified by set-env.
jail
Removes a user-defined username that was previously specified by set-user.
jail
Removes a user-defined working directory that was previously specified by set-workdir.
[-d] [[-e name[=value]] ...] [-u user] [-w workdir] jail [command [args ...]]
Executes the command specified by the OCI image. The command to be executed is a combination of the entrypoint and its arguments. Environment variables are also set if the OCI image contains them. If the OCI image specifies a user, the process is executed as such, and if the working directory is specified by the OCI image, the process is executed in that directory (which should exist).

The command can be changed if positional arguments are defined, the working directory can be changed using the -w parameter, the user to run the process as can be changed using the -u parameter and more environment variables can be specified using the -e parameter.

The working directory, user and environment variables can also be specified using set-workdir, set-user and set-env. Command-line arguments take precedence over these subcommands. If no parameters are specified using command-line arguments or the aforementioned subcommands, the values depend entirely on those specified by the OCI image. If the OCI image has no such values, the working directory will be , the user will be , and no environment variables will be specified except those specified by the jexec(8)'s -l parameter.

Note that a Linux image will probably not work if you or the image itself specifies a user because the getpwent(3) function does not work in such an environment. Also some Linux images may specify a user as : which is not valid by jexec(8) because it expects a user as , which has the advantage of being more human readable and should also exist in the environment.

If the -d parameter is specified, the process runs in the background.

image jail [options ...]
This is a wrapper for the from option of the appjail-quick(1) command.
jail
Get the container assigned to jail.
jail name
Gets the value of an environment variable previously specified by set-env.
jail
If the -d parameter was specified when executing exec or appjail-start(1) executes the process, this subcommand displays the PID of that process only if it is running.
jail
Gets the user previously specified by set-user.
jail
Gets the working directory previously specified by set-workdir.
[-s signal] jail
If the process executed in the background by exec is running, this subcommand will kill it using the signal specified by the OCI image. The signal can be overwritten by the -s parameter and if none is specified, will be used. This is used by appjail-stop(1) to stop the process.
jail
Lists all environment variables previously specified by set-env.
jail
Mount the container directory in the jail directory.
[-d] [[-e name[=value]] ...] [[-o option] ...] [-u user] [-w workdir] jail [command [args ...]]
This subcommand first calls from with the options specified by -o, then calls exec. The appjail-quick(1)'s start option is always used.
[off|on] jail
Specify on to start the process in background using appjail-start(1) or off otherwise.
container-name jail
Sets the container that will be linked to this jail.
jail name [value]
Sets an environment variable or overwrites a previously existing one.
jail user
Sets the user or overwrites a previously existing one.
jail workdir
Sets the working directory or overwrites a previously existing one.
jail
Unmount the container directory previously mounted by mount.

appjail-jail(1) appjail-start(1) appjail-stop(1) appjail-quick(1) getpwent(3) appjail.conf(5) jexec(8)

Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>

December 7, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.