Rex::Vi...::Docker(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

🫢 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