Struct docker_command::Launcher [−][src]
pub struct Launcher { /* fields omitted */ }
Expand description
Base container command used for building and running containers.
This allows variations such as “docker”, “sudo docker”, and “podman”.
Implementations
Create a new Launcher
with the specified base Command
. The
base command is used to create all the other commands.
Automatically choose a base command.
- Chooses
podman
if is in the$PATH
. - Otherwise chooses
docker
if it is in the$PATH
.- If the current user is not in a
docker
group,sudo
is added.
- If the current user is not in a
If neither command is in the $PATH
, returns None
.
Whether the base command appears to be docker. This checks if the program or any of the arguments in the base command match “docker”.
Whether the base command appears to be podman. This checks if the program or any of the arguments in the base command match “podman”.
Get the base Command
.
Create a Command
for creating a network.
Create a Command
for removing a network.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Launcher
impl UnwindSafe for Launcher
Blanket Implementations
Mutably borrows from an owned value. Read more