Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.18 KB

pouch_exec.md

File metadata and controls

49 lines (35 loc) · 1.18 KB

pouch exec

Run a command in a running container

Synopsis

Run a command in a running container

pouch exec [OPTIONS] CONTAINER COMMAND [ARG...]

Examples

$ pouch exec -it 25bf50 ps
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/sh
   38 root      0:00 ps

Options

  -d, --detach            Run the process in the background
  -e, --env stringArray   Set environment variables
  -h, --help              help for exec
  -i, --interactive       Open container's STDIN
      --privileged        Give extended privileges to the exec process
  -t, --tty               Allocate a tty device
  -u, --user string       Username or UID (format: <name|uid>[:<group|gid>])

Options inherited from parent commands

  -D, --debug              Switch client log level to DEBUG mode
  -H, --host string        Specify connecting address of Pouch CLI (default "unix:///var/run/pouchd.sock")
      --tlscacert string   Specify CA file of TLS
      --tlscert string     Specify cert file of TLS
      --tlskey string      Specify key file of TLS
      --tlsverify          Use TLS and verify remote

SEE ALSO

  • pouch - An efficient container engine