pyinfra.api.connectors.docker module

pyinfra.api.connectors.docker.connect(state, host, for_fact=None)
pyinfra.api.connectors.docker.disconnect(state, host)
pyinfra.api.connectors.docker.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.docker.make_names_data(image=None)
pyinfra.api.connectors.docker.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.docker.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.docker.show_warning()