{"record":{"id":"a7abbe56a21c8dcd","repo":"nektos/act","slug":"cannot-merge-container-hostconfig-options-s","errorCode":null,"errorMessage":"Cannot merge container.HostConfig options: '%s': '%w'","messagePattern":"Cannot merge container\\.HostConfig options: '(.+?)': '%w'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":403,"sourceCode":"hostConfig.Binds = append(hostConfig.Binds, containerConfig.HostConfig.Binds...)\nhostConfig.Mounts = append(hostConfig.Mounts, containerConfig.HostConfig.Mounts...)\nbinds := hostConfig.Binds\nmounts := hostConfig.Mounts\nerr = mergo.Merge(hostConfig, containerConfig.HostConfig, mergo.WithOverride)\nif err != nil {\n\treturn nil, nil, fmt.Errorf(\"Cannot merge container.HostConfig options: '%s': '%w'\", input.Options, err)\n}\nhostConfig.Binds = binds\nhostConfig.Mounts = mounts","sourceCodeStart":385,"sourceCodeEnd":421,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L385-L421","documentation":"Error \"Cannot merge container.HostConfig options: '%s': '%w'\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:403 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the underlying HostConfig field that failed to merge (e.g. Binds, PortBindings, NetworkMode).","Ensure container options passed via --container-options are valid Docker HostConfig values.","Simplify or remove conflicting container options and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4f411281417e88660bea1c1a1749aa71ae0bd60f","analyzedAt":"2026-08-15T09:19:46.307Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}