[lxc-devel] [lxd/master] doc: Tweak docker instructions

stgraber on Github lxc-bot at linuxcontainers.org
Thu Aug 24 01:21:50 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170824/cd4d2be6/attachment.bin>
-------------- next part --------------
From 255b875c37c87572a09e864b4fe6dd05a78b4d01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 23 Aug 2017 21:20:33 -0400
Subject: [PATCH] doc: Tweak docker instructions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #3712

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index 99dda273d..9c5ffa948 100644
--- a/README.md
+++ b/README.md
@@ -186,6 +186,16 @@ In order to run Docker inside a LXD container the `security.nesting` property of
 
     lxc config set <container> security.nesting true
 
+Note that LXD containers cannot load kernel modules, so depending on your Docker configuration  
+you may need to have the needed extra kernel modules loaded by the host.
+
+You can do so by setting a comma seperate list of kernel modules that your container needs with:
+
+    lxc config set <container> linux.kernel_modules <modules>
+
+We have also received some reports that creating a "/.dockerenv" file in your container  
+can help Docker ignore some errors it's getting due to running in a nested environment.
+
 ## Hacking on LXD
 ### Directly using the REST API
 The LXD REST API can be used locally via unauthenticated Unix socket or remotely via SSL encapsulated TCP.


More information about the lxc-devel mailing list