pyinfra.api.connectors.dockerssh module

pyinfra.api.connectors.dockerssh.connect(state, host)
pyinfra.api.connectors.dockerssh.disconnect(state, host)
pyinfra.api.connectors.dockerssh.get_file(state, host, remote_filename, filename_or_io, print_output=False, print_input=False, **kwargs)

Download a file from the target Docker container by copying it to a temporary location and then reading that into our final file/IO object.

pyinfra.api.connectors.dockerssh.make_names_data(host_image_str)
pyinfra.api.connectors.dockerssh.put_file(state, host, filename_or_io, remote_filename, print_output=False, print_input=False, **kwargs)

Upload a file/IO object to the target Docker container by copying it to a temporary location and then uploading it into the container using docker cp.

pyinfra.api.connectors.dockerssh.remote_remove(state, host, filename, print_output=False, print_input=False)

Deletes a file on a remote machine over ssh.

pyinfra.api.connectors.dockerssh.run_shell_command(state, host, command, get_pty=False, timeout=None, stdin=None, success_exit_codes=None, print_output=False, print_input=False, return_combined_output=False, **command_kwargs)
pyinfra.api.connectors.dockerssh.show_warning()