mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
Added ExtraHosts option.
This commit is contained in:
parent
a80971dd27
commit
fd68039cb9
5 changed files with 65 additions and 2 deletions
|
@ -156,6 +156,7 @@ describe('startContainerController', function() {
|
|||
CapDrop: ['cap_foo_bar'],
|
||||
Devices: [{ 'PathOnHost': '/dev/deviceName', 'PathInContainer': '/dev/deviceName', 'CgroupPermissions': 'mrw'}],
|
||||
LxcConf: {'lxc.utsname':'docker'},
|
||||
ExtraHosts: ['hostname:127.0.0.1'],
|
||||
RestartPolicy: {name: 'always', MaximumRetryCount: 5}
|
||||
},
|
||||
name: 'container-name'
|
||||
|
@ -191,6 +192,7 @@ describe('startContainerController', function() {
|
|||
scope.config.HostConfig.RestartPolicy = {name: 'always', MaximumRetryCount: 5};
|
||||
scope.config.HostConfig.Devices = [{ 'PathOnHost': '/dev/deviceName', 'PathInContainer': '/dev/deviceName', 'CgroupPermissions': 'mrw'}];
|
||||
scope.config.HostConfig.LxcConf = [{name: 'lxc.utsname', value: 'docker'}];
|
||||
scope.config.HostConfig.ExtraHosts = [{host: 'hostname', ip: '127.0.0.1'}];
|
||||
|
||||
scope.create();
|
||||
$httpBackend.flush();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue