The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

lxc-app-run - update configuration for an LXC application container

SYNOPSIS

    lxc-app-run [{-u|--user} <user>] [{-d|--dir|--directory} <directory>] \
        <container> <command> <parameters>...

ABSTRACT

main script used to run a previously configured LXC application container

Note that the script must be called as root (see App::LXC::Container::Run for details).

DESCRIPTION

This script runs a command inside of an LXC application container previously created or updated with lxc-app-update. Parameters following the command are passed through unmodified. If no user is specified, the command runs as root, which is a root account especially restricted to the container unless explicitly configured otherwise (usually a bad idea). Likewise another given user is restricted unless explicitly added to the list of allowed users for the configuration (usually not a bad idea). The command is run in / or the specified directory.

Note that the previously created configuration for LXC itself contains a mandatory MASTER comment in the second line. This comment may not be deleted or modified, otherwise the start of the container may fail or the container may not work as expected.

SEE ALSO

App::LXC::Container, App::LXC::Container::Run

LICENSE

Copyright (C) Thomas Dorner.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.

AUTHOR

Thomas Dorner <dorner (at) cpan (dot) org>