From 5aa2cd3903948f93978797441779caca0b994b6d Mon Sep 17 00:00:00 2001 From: "Simental Magana, Marcos" Date: Tue, 15 Nov 2016 09:30:21 -0600 Subject: [PATCH] ciao-deploy: update documentation to use privileged container As the container use `/usr/bin/losetup` to manipulate the CNCI image, it's neccessary to use the container in `--privileged` mode and map `/dev/`, otherwise the container won't be able to perfomr `losetup` operation nor mount the loops. this commit updates the documentation to instruct the user how to call the container in privileged mode. This commit fixes #16 Signed-off-by: Simental Magana, Marcos --- ciao-deploy/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ciao-deploy/README.md b/ciao-deploy/README.md index 1989146..d5eb651 100644 --- a/ciao-deploy/README.md +++ b/ciao-deploy/README.md @@ -36,7 +36,8 @@ documentation. Run the Ciao-deploy Container ---------------------------- ``` -docker run -v $(pwd)/ciao:/root/ciao \ +docker run --privileged -v /dev/:/dev/ \ + -v $(pwd)/ciao:/root/ciao \ -it clearlinux/ciao-deploy ``` @@ -45,11 +46,19 @@ If you have setup your ssh key for the ansible setup, you may want to use it in your ciao-deploy container: ``` -docker run -v $(pwd)/ciao:/root/ciao \ +docker run --privileged -v /dev/:/dev/ \ + -v $(pwd)/ciao:/root/ciao \ -v /path/to/your/.ssh/key:/root/.ssh/key \ -it clearlinux/ciao-deploy ``` +**Note**: + +The cotainer needs `–privileged -v /dev/:/dev/` in order to install +your certificates in the +[CNCI image](https://github.com/01org/ciao/tree/master/networking/ciao-cnci-agent#cnci-agent). +To learn more about the Docker options used, please refer to the +[Docker* documentation](https://docs.docker.com/engine/reference/commandline/run/). Extra Build ARGs ----------------