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
The problem is that the resulting logfile backend.log is garbled. It contains the output of my postStart command (which I'm not really interested in), followed by a large block of null bytes, followed by some but not all standard output and standard error messages from the container.
A large chunk of container messages is missing (possibly overwritten by the null bytes).
Using docker.keepContainer and
docker logs mycontainer > out.txt 2> err.txt
I can see that the Docker logs are complete, so I believe d-m-p is to blame.
Is it intended that postStart messages automatically go to the log file as soon as there is a <log> element? Is there a way to route postStart, preStop and normal container messages to different sinks (i.e. files or the console)?
In any case, log messages should not be corrupted.
Looking at the source code, it seems that DefaultLogCallback is lacking proper synchronization.
Info
d-m-p version : 0.18.1
Maven version (mvn -v) : 3.3.9
Docker version : 1.12.3
The text was updated successfully, but these errors were encountered:
hwellmann
added a commit
to hwellmann/docker-maven-plugin
that referenced
this issue
Dec 17, 2016
Description
I'm running a container with the following configuration:
The problem is that the resulting logfile
backend.log
is garbled. It contains the output of mypostStart
command (which I'm not really interested in), followed by a large block of null bytes, followed by some but not all standard output and standard error messages from the container.A large chunk of container messages is missing (possibly overwritten by the null bytes).
Using
docker.keepContainer
anddocker logs mycontainer > out.txt 2> err.txt
I can see that the Docker logs are complete, so I believe d-m-p is to blame.
Is it intended that
postStart
messages automatically go to the log file as soon as there is a<log>
element? Is there a way to routepostStart
,preStop
and normal container messages to different sinks (i.e. files or the console)?In any case, log messages should not be corrupted.
Looking at the source code, it seems that
DefaultLogCallback
is lacking proper synchronization.Info
mvn -v
) : 3.3.9The text was updated successfully, but these errors were encountered: