You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this appears not possible using docker-java. This issue previously came up in #783 but was resolved by manually adding the log driver type in question as an element of the enum, which does not solve the issue in the more general case.
The text was updated successfully, but these errors were encountered:
clairradiant
changed the title
Support custom LoggingType-s
Support custom LoggingTypes
May 24, 2025
In case anybody else is running into this issue, a possible workaround for now is to name your custom logging driver "db" (--alias-ing a plugin you're installing should also work?) and use LoggingType.DB since "db" isn't present in Docker installations by default.
The other option would be to specify a default log-driver in daemon.json and not supply a LogConfig to docker-java. I've confirmed in this case that the default specified in daemon.json is used.
My use case requires the use of a custom logging driver. Due to the representation of
LoggingType
as an enum:docker-java/docker-java-api/src/main/java/com/github/dockerjava/api/model/LogConfig.java
Lines 66 to 80 in 20f0831
this appears not possible using
docker-java
. This issue previously came up in #783 but was resolved by manually adding the log driver type in question as an element of the enum, which does not solve the issue in the more general case.The text was updated successfully, but these errors were encountered: