MCPcopy Create free account
hub / github.com/Metaswitch/floki / enable_forward_ssh_agent

Function enable_forward_ssh_agent

src/command.rs:190–199  ·  view source on GitHub ↗
(
    command: DockerCommandBuilder,
    agent_socket: &OsStr,
)

Source from the content-addressed store, hash-verified

188}
189
190pub fn enable_forward_ssh_agent(
191 command: DockerCommandBuilder,
192 agent_socket: &OsStr,
193) -> DockerCommandBuilder {
194 debug!("Got SSH_AUTH_SOCK={agent_socket:?}");
195 let dir = path::Path::new(agent_socket).to_path_buf();
196 command
197 .add_environment("SSH_AUTH_SOCK", agent_socket)
198 .add_volume((&dir, &dir))
199}
200
201pub fn enable_docker_in_docker(
202 command: DockerCommandBuilder,

Callers 1

run_floki_containerFunction · 0.85

Calls 2

add_volumeMethod · 0.80
add_environmentMethod · 0.80

Tested by

no test coverage detected