diff --git a/src/ImageRunModal.jsx b/src/ImageRunModal.jsx index 46c3d0372..f9a15029f 100644 --- a/src/ImageRunModal.jsx +++ b/src/ImageRunModal.jsx @@ -88,6 +88,7 @@ export class ImageRunModal extends React.Component { entrypoint, env: [], hasTTY: true, + privileged: false, publish: [], image: props.image, memory: 512, @@ -167,6 +168,7 @@ export class ImageRunModal extends React.Component { createConfig.resource_limits = resourceLimit; } createConfig.terminal = this.state.hasTTY; + createConfig.privileged = this.state.privileged; if (this.state.publish.some(port => port !== undefined)) createConfig.portmappings = this.state.publish .filter(port => port?.containerPort) @@ -875,11 +877,15 @@ export class ImageRunModal extends React.Component { onChange={(_, value) => this.onValueChanged('command', value)} /> - + this.onValueChanged('hasTTY', checked)} /> + this.onValueChanged('privileged', checked)} />