dvs exec
Executes a command in the application container.
Usageβ
dvs exec [OPTIONS] <command> [arguments...]
Optionsβ
-u, --user <username>- Execute the command as the specified user (default: root)
Examplesβ
Execute a command as root (default):
dvs exec ls -la
Execute a command as a specific user:
dvs exec -u www-data whoami
dvs exec --user www-data php -v
Notesβ
- The application container must be running
- If the specified user does not exist, the command will fail