We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyinfra/pyinfra/connectors/docker.py
Line 168 in 2fb4fb0
allow to change sh with bash
The text was updated successfully, but these errors were encountered:
This is only the "outer" shell inside the container.
If you run any command (e.g. using host.run_shell_command()), the command is wrapped inside another shell (sh by default).
host.run_shell_command()
sh
host.run_shell_command('env')
causes this command to be executed:
docker exec -i 61b49edf82f51aab344fe6f2d5c54b24cb6bbd6c4a1862f5102cc59f16f202aa sh -c 'sh -c env'
You can use the global _shell_executable argument to modify this behavior:
_shell_executable
host.run_shell_command('ps aux', _shell_executable='bash')
Is this what you're looking for? Or does the container image you target not contain sh?
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe
pyinfra/pyinfra/connectors/docker.py
Line 168 in 2fb4fb0
Describe the solution you'd like
allow to change sh with bash
The text was updated successfully, but these errors were encountered: