sandbox-cli is a command-line tool designed for in-time configuration of gVisor Sandbox, an open-source container runtime sandbox.
This CLI tool allows users to perform various operations related to gVisor's hook functions and state management.
sandbox-cli <Command> [-h|--help] [-a|--address "<value>"]
The following arguments are available for the CLI and every command:
-h,--help: Print help information. Use this argument to display the CLI's usage and available commands.-a,--address "<value>": Socket address. This argument allows users to specify the socket address for communication.
export CLI_ADDRESS=localhost:8080
Show man (manual) for accessors. This command provides detailed information and documentation about the available accessors that can be used in gVisor's JavaScript engine.
Change state. This command allows users to modify the state of gVisor during runtime.
Get current hooks. Use this command to retrieve the currently active hook functions in gVisor.
Unregister hooks. This command lets users unregister or remove specific hook functions from gVisor.
sandbox-cli get --verboseThis command retrieves and displays the currently active hook functions.
sandbox-cli state -a "127.0.0.1:8080" -c change_state.jsUsing this command, users can change the state of gVisor by providing the desired socket address (e.g., "127.0.0.1:8080").
sandbox-cli delete -s 59 -t afterThis command allows users to unregister specific hook functions from gVisor.
For more details about gVisor and the available accessors, use the following command:
sandbox-cli manThis will provide comprehensive information about the accessors and their usage in the JavaScript engine integrated into gVisor.