Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 3.8 KB

runtainer_completion_bash.md

File metadata and controls

78 lines (57 loc) · 3.8 KB

runtainer completion bash

Generate the autocompletion script for bash

Synopsis

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

source <(runtainer completion bash)

To load completions for every new session, execute once:

Linux:

runtainer completion bash > /etc/bash_completion.d/runtainer

macOS:

runtainer completion bash > $(brew --prefix)/etc/bash_completion.d/runtainer

You will need to start a new shell for this setup to take effect.

runtainer completion bash

Options

  -h, --help              help for bash
      --no-descriptions   disable completion descriptions

Options inherited from parent commands

  -c, --config string               global config file (default is $HOME/.runtainer.yaml)
      --debug                       Enables info and debug logs to file
  -d, --dir string                  Use different folder to make a CWD in the container (default is the host CWD)
      --disable-discovery strings   Disable individual discovery mechanisms
      --dry-run                     Dry Run mode will not execute the container, only print to StdOut a pod spec it would have run.
  -e, --env strings                 Mapping for env, i.e. --env AWS_PROFILE or --env AWS_PROFILE=foo
  -i, --interactive                 Disable to not to attach to the container.
                                    	By default we wait till pod becomes Running and then - attaching to it.
                                    	If container expected to run a script in non-interactive mode and exit,
                                    	- the tool might try to attach to the container that is already finished and fail.
                                    	Disable interactive mode in this case - then it will not attempt to attach
                                    	and instead will just stream logs until containe becomes either Succeeded or Failed.
                                    	This automatically disables --stdin and --tty. (default true)
      --log                         Enables info logs to file
  -p, --port strings                Mapping for ports, i.e. --port 8080:8080
  -q, --quiet                       Enable quiet mode.
                                    	By default runtainer never prints to StdOut,
                                    	reserving that channel exclusively to the container.
                                    	But it does print messages to StdErr.
                                    	Enabling quiet mode will redirect all messages to the info logger.
                                    	If --log mode was not enabled - these messages will be discarded.
  -G, --run-as-current-group        Will set runAsGroup to the current host GID. Ignored if -U=false. If disabled - will set fsGroup to the current host GID instead. (default true)
  -U, --run-as-current-user         Will set runAsUser to the current host UID. (default true)
  -S, --secret string               Optionally, provide a name of the secret to be used for the image pull
      --secret-env strings          Mapping for env secrets, i.e. --secret-env foo secret-env bar
      --secret-volume strings       Mapping for env secrets, i.e. --secret-volume foo secret-volume bar
  -s, --stdin                       Redirect host StdIn to the container (default true)
  -t, --tty                         Enable TTY, disable if piping something to stdin (default true)
  -v, --volume strings              Mapping for volumes, i.e. --volume /data:/data

SEE ALSO

Auto generated by spf13/cobra on 12-Oct-2022