Skip to content
Snippets Groups Projects
Commit dfe1d506 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Update LXC documentation


Removed alternative location from example since AppArmor on Apertis
prevents mounts for LXC outside of the default location.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D7417
parent 17aa408f
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ LXC template generates configuration file for container, pre-mount hook and AppA
Template is compatible with LXC upstream, so tools from LXC should be used to create/start/stop/destroy the container.
# Create container:
sudo lxc-create -t $PWD/lxc-apertis-ostree -P $PWD/apertis --name apertis-test -- --ospack "https://images.apertis.org/daily/18.03/images/minimal/arm64-generic/20171205.0/ospack_18.03-amd64-minimal-lxc_00000000.0.tar.gz"
sudo lxc-create -t $PWD/lxc-apertis-ostree --name apertis-test -- --ospack "https://images.apertis.org/lxc/17.12/20171230.0/lxc-ostree-17.12-amd64-minimal_20171230.0.tar.gz"
options:
- -t -- use template named `lxc-apertis-ostree` from current directory
......@@ -12,11 +12,11 @@ options:
- --ospack -- URL to download the initial image
# Start the container in foreground mode:
sudo lxc-start -F -P $PWD/apertis --name apertis-test
sudo lxc-start -F --name apertis-test
Pull the ostree, deploy and reboot into deployed OS tree:
sudo ostree admin upgrade -r
# Destroy the container and associated configuration:
sudo lxc-destroy -P $PWD/apertis --name apertis-test
sudo lxc-destroy --name apertis-test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment