From a5fa371f2223b9f8fd7802667a0bb08d1a02a5b6 Mon Sep 17 00:00:00 2001 From: Petros Angelatos Date: Wed, 18 Jun 2014 19:39:01 +0100 Subject: [PATCH] Bind mount /lib/modules to enable module loading from inside the container --- src/application.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/application.coffee b/src/application.coffee index 2b0ad705..d8d64b59 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -83,6 +83,7 @@ exports.start = start = (app) -> Tty: true Volumes: '/dev': {} + '/lib/modules': {} Env: _.map env, (v, k) -> k + '=' + v ExposedPorts: ports ) @@ -96,6 +97,7 @@ exports.start = start = (app) -> PortBindings: ports Binds: [ '/dev:/dev' + '/lib/modules:/lib/modules' '/var/run/docker.sock:/run/docker.sock' ] )