Skip to content

Commit 635b77e

Browse files
jankeromnesnt1m
authored andcommitted
Enable debugger support for containers (#399)
1 parent b7077a6 commit 635b77e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/docker.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ exports.runContainer = function (parameters, callback) {
192192
const options = {
193193
Image: image,
194194
ExposedPorts: {},
195-
HostConfig: { PortBindings: {} }
195+
HostConfig: {
196+
CapAdd: ['SYS_PTRACE'],
197+
PortBindings: {},
198+
}
196199
};
197200

198201
for (const port in ports) {

0 commit comments

Comments
 (0)