// container-tools - Manage systemd-nspawn containers
// Copyright (C) 2014-2016 Daniel Baumann <daniel.baumann@open-infrastructure.net>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

CONTAINER-TOOLS(7)
==================
:doctype: manpage
:man manual: Open Infrastructure
:man source: container-tools
:man version: {revnumber}


NAME
----
container-tools - Manage systemd-nspawn containers


DESCRIPTION
-----------
"[A Linux container] is an operating-system-level virtualization environment for running multiple isolated Linux systems (containers) on a single Linux control host."::
    -- Wikipedia (https://en.wikipedia.org/wiki/LXC)

container-tools provides the system integration for managing containers using systemd-nspawn.


DOWNLOAD
--------

  * Upstream Releases: https://files.open-infrastructure.net/software/container-tools/upstream
  * Upstream Sources: https://sources.open-infrastructure.net/software/container-tools
  * Debian Releases: https://files.open-infrastructure.net/software/container-tools/debian
  * Debian Sources: https://sources.progress-linux.org/users/daniel/debian/packages/open-infrastructure-container-tools


INSTALLATION
------------

SOURCE
~~~~~~

  1. sudo apt install asciidoc git docbook-xml docbook-xsl libxml2-utils make xsltproc
  2. git clone https://github.com/open-infrastructure/container-tools
  3. cd container-tools && sudo make install

DEBIAN 9 (STRETCH) AND NEWER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * sudo apt install container-tools


DEVELOPMENT
-----------

Bug reports, feature requests, and patches are welcome via Github:

  * https://github.com/open-infrastructure/container-tools

Please base them against the 'next' Git branch using common sense:

  * https://www.kernel.org/doc/Documentation/SubmittingPatches


USAGE
-----

*Create a new container:*::
	sudo container create -n NAME

*Start a container:*::
	sudo container start -n NAME

*Restart a container:*::
	sudo container restart -n NAME

*Stop a container:*::
	sudo container stop -n NAME

*Remove a container:*::
	sudo container remove -n NAME

*Attach console to a container:*::
	sudo container console -n NAME

*limit*::
	sudo container limit -n NAME --cpu-quota 10%

*List container on the system:*::
	sudo container list

*Show container-tools version:*::
	container version


LINKS
-----

*2016-02-24: Systemd vs. Docker*::
	https://lwn.net/Articles/676831/

*2015-06-10: Systemd and containers*::
	https://lwn.net/Articles/647634/

*2014-07-07: Control groups*::
	https://lwn.net/Articles/604609/

*2013-11-13: Systemd-Nspawn is Chroot on Steroids [LinuxCon Europe]*::
	https://www.youtube.com/watch?v=s7LlUs5D9p4

*2013-11-03: Creating containers with systemd-nspawn*::
	https://lwn.net/Articles/572957/

*2013-02-06: Systemd lightweight containers*::
	https://lwn.net/Articles/536033/

*2013-01-04: Namespaces in operation*::
	https://lwn.net/Articles/531114/


AUTHORS
-------

  * Daniel Baumann <daniel.baumann@open-infrastructure.net>