mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(docker/container): container logs viewer error when logging is disabled (#10384)
* fix(docker/container-logs): invalid string breadcrumb * fix(docker/container): let docker select the logging driver by default on container create * fix(docker/container-logs): information panel in container logs when logging is disabled * fix(docker/container): dont include HostConfig.LogConfig if no driver is selected
This commit is contained in:
parent
d678b155ba
commit
ada6b31f69
9 changed files with 74 additions and 6 deletions
|
@ -34,6 +34,11 @@ export function toRequest(
|
|||
delete config.Entrypoint;
|
||||
}
|
||||
|
||||
// don't include LogConfig object if "Default logging driver" (type === '') is selected
|
||||
if (values.logConfig.type === '') {
|
||||
delete config.HostConfig.LogConfig;
|
||||
}
|
||||
|
||||
return config;
|
||||
|
||||
function getLogConfig(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue