dvs shell
Opens a shell in the application container.
Usageβ
dvs shell [OPTIONS] [bash_options...]
Optionsβ
-u, --user <username>- Open the shell as the specified user (default: root)
Additional arguments are passed directly to /bin/bash.
Examplesβ
Open a shell as root (default):
dvs shell
Open a shell as a specific user:
dvs shell -u www-data
dvs shell --user www-data
Execute a command directly:
dvs shell -c "ls -la"
dvs shell -u www-data -c "whoami"
Notesβ
- The application container must be running
- If the specified user does not exist, the command will fail
- The shell opened is
/bin/bash - Additional arguments after
-u/--userare passed to bash