feat(container-creation): add support for --init (#2111) (#3714)

pull/3719/head
Mariell 2020-04-15 03:09:42 +02:00 committed by GitHub
parent bba622a500
commit f525c8d022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -111,6 +111,7 @@ angular.module('portainer.docker').controller('CreateContainerController', [
AutoRemove: false,
NetworkMode: 'bridge',
Privileged: false,
Init: false,
Runtime: '',
ExtraHosts: [],
Devices: [],

View File

@ -606,6 +606,16 @@
</div>
</div>
<!-- !privileged-mode -->
<!-- init -->
<div class="form-group" ng-if="applicationState.endpoint.apiVersion >= 1.37">
<div class="col-sm-12">
<label for="init" class="control-label text-left">
Init
</label>
<label class="switch" style="margin-left: 20px;"> <input type="checkbox" name="init" ng-model="config.HostConfig.Init" /><i></i> </label>
</div>
</div>
<!-- !init -->
<!-- runtimes -->
<div class="form-group">
<label for="container_runtime" class="col-sm-1 control-label text-left">Runtime</label>