mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +00:00
Bind mount /lib/modules to enable module loading from inside the container
This commit is contained in:
parent
4cfcd39524
commit
a5fa371f22
@ -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'
|
||||
]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user