版本:v1.4

vela exec

Execute command in a container

Execute command inside container based vela application.

  1. vela exec [flags] APP_NAME -- COMMAND [args...]
  1. # Get output from running 'date' command from app pod, using the first container by default
  2. vela exec my-app -- date
  3. # Switch to raw terminal mode, sends stdin to 'bash' in containers of application my-app
  4. # and sends stdout/stderr from 'bash' back to the client
  5. vela exec my-app -i -t -- bash -il
  1. -e, --env string specify environment name for application
  2. -h, --help help for exec
  3. -n, --namespace string specify the Kubernetes namespace to use
  4. --pod-running-timeout duration The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running (default 1m0s)
  5. -i, --stdin Pass stdin to the container (default true)
  6. -t, --tty Stdin is a TTY (default true)
  1. -y, --yes Assume yes for all user prompts

Last updated on 2022年12月22日 by Ihor Sychevskyi