ssh

pydocker.ssh.add_keys()[source]

Tries to add ssh keys found in ~/.ssh/cloud_keys, will prompt with required command if there is a password.

pydocker.ssh.build_ssh()[source]

Build the ssh-agent image

pydocker.ssh.params()[source]

Generates dictionary containing parameters to run ssh-agent

Returns:Dictionary containing parameters to run ssh-agent
Return type:dict
pydocker.ssh.shutdown()[source]

shutdown ssh-agent

pydocker.ssh.start()[source]

Starts a container running an ssh-agent. This also will remove an existing container and replace it if run again.