mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
feat(container): add sysctls setting in the container view (#4910)
* feat(container): add sysctls in the container view (#2756) * feat(container): add setting to restrict sysctl access * feat(endpoint): move sysctl disable setting to security settings * feat(container): add sysctls to container edit view * fix(container) remove unnecessary migration setting Co-authored-by: Owen Kirby <oskirby@gmail.com>
This commit is contained in:
parent
ac7d819620
commit
d09ae22ba8
14 changed files with 125 additions and 9 deletions
|
@ -213,6 +213,7 @@ describe('startContainerController', function () {
|
|||
CgroupPermissions: 'mrw',
|
||||
},
|
||||
],
|
||||
Sysctls: { 'net.ipv6.conf.all.disable_ipv6': '0' },
|
||||
LxcConf: { 'lxc.utsname': 'docker' },
|
||||
ExtraHosts: ['hostname:127.0.0.1'],
|
||||
RestartPolicy: { name: 'always', MaximumRetryCount: 5 },
|
||||
|
@ -255,6 +256,7 @@ describe('startContainerController', function () {
|
|||
CgroupPermissions: 'mrw',
|
||||
},
|
||||
];
|
||||
scope.config.HostConfig.Sysctls = [{ name: 'net.ipv6.conf.all.disable_ipv6', value: '0' }];
|
||||
scope.config.HostConfig.LxcConf = [{ name: 'lxc.utsname', value: 'docker' }];
|
||||
scope.config.HostConfig.ExtraHosts = [{ host: 'hostname', ip: '127.0.0.1' }];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue