Signed-off-by: Rob Murray <rob.murray@docker.com>
| ... | ... |
@@ -205,10 +205,10 @@ func (daemon *Daemon) GetDependentContainers(c *container.Container) []*containe |
| 205 | 205 |
return append(dependentContainers, slices.Collect(maps.Values(daemon.linkIndex.children(c)))...) |
| 206 | 206 |
} |
| 207 | 207 |
|
| 208 |
-func (daemon *Daemon) setSecurityOptions(cfg *config.Config, container *container.Container, hostConfig *containertypes.HostConfig) error {
|
|
| 208 |
+func (daemon *Daemon) setSecurityOptions(cfg *config.Config, container *container.Container) error {
|
|
| 209 | 209 |
container.Lock() |
| 210 | 210 |
defer container.Unlock() |
| 211 |
- return daemon.parseSecurityOpt(cfg, &container.SecurityOptions, hostConfig) |
|
| 211 |
+ return daemon.parseSecurityOpt(cfg, &container.SecurityOptions, container.HostConfig) |
|
| 212 | 212 |
} |
| 213 | 213 |
|
| 214 | 214 |
// verifyContainerSettings performs validation of the hostconfig and config |
| ... | ... |
@@ -221,7 +221,7 @@ func (daemon *Daemon) create(ctx context.Context, daemonCfg *config.Config, opts |
| 221 | 221 |
} |
| 222 | 222 |
}() |
| 223 | 223 |
|
| 224 |
- if err := daemon.setSecurityOptions(daemonCfg, ctr, opts.params.HostConfig); err != nil {
|
|
| 224 |
+ if err := daemon.setSecurityOptions(daemonCfg, ctr); err != nil {
|
|
| 225 | 225 |
return nil, err |
| 226 | 226 |
} |
| 227 | 227 |
|