Rex::Vi...::Docker(3)
π«Ά Rex::Virtualization::Docker π«Ά
okay so this page lives in the User Contributed Perl Documentation section, and it's literally about Rex::Virtualization::Docker β the Docker Virtualization Module π
no cap, that's the whole name.
πΈ NAME πΈ
Rex::Virtualization::Docker β Docker Virtualization Module π³β¨
π DESCRIPTION π
bestie, with this module you can manage Docker. that's it, that's the vibe. Docker management has entered the group chat π«Ά
π SYNOPSIS π
here's the whole thing, verbatim, do not touch the commas iykyk:
use Rex::Commands::Virtualization;
set virtualization => "Docker";
use Data::Dumper;
print Dumper vm list => "all";
print Dumper vm list => "running";
print Dumper vm info => "vm01";
vm destroy => "vm01";
vm delete => "vm01";
vm start => "vm01";
vm shutdown => "vm01";
vm reboot => "vm01";
# creating a vm
my $id = vm create => "vm01",
image => "ubuntu",
command => 'echo hello world',
memory => 512,
cpus => 1,
links => ['mysql:db'],
forward_port => [8080 => 80],
share_folder => ["hostdir" => "vmdir"],
like, vm list, vm info, vm destroy, vm delete, vm start, vm shutdown, vm reboot, and vm create are all right there in their natural habitat π¦ the vm create bit is giving main-character energy with image, command, memory, cpus, links, forward_port, and share_folder all lined up ππ
byeee π this lil masterpiece was shipped with perl v5.42.3 and stamped 2023-08-05 πβ¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms