Bind mount /lib/modules to enable module loading from inside the container

This commit is contained in:
Petros Angelatos 2014-06-18 19:39:01 +01:00 committed by Pablo Carranza Vélez
parent 4cfcd39524
commit a5fa371f22

View File

@ -83,6 +83,7 @@ exports.start = start = (app) ->
Tty: true Tty: true
Volumes: Volumes:
'/dev': {} '/dev': {}
'/lib/modules': {}
Env: _.map env, (v, k) -> k + '=' + v Env: _.map env, (v, k) -> k + '=' + v
ExposedPorts: ports ExposedPorts: ports
) )
@ -96,6 +97,7 @@ exports.start = start = (app) ->
PortBindings: ports PortBindings: ports
Binds: [ Binds: [
'/dev:/dev' '/dev:/dev'
'/lib/modules:/lib/modules'
'/var/run/docker.sock:/run/docker.sock' '/var/run/docker.sock:/run/docker.sock'
] ]
) )