Skip to content

issue with logdriver #2

@tchaton

Description

@tchaton

Hey @monmohan

I just read your blogpost and tried to run your code. Thanks you very much for this.

I made micro changes to your repo and pushed the code there: https://github.com/tchaton/logdriver.

However, when running the code, I don't see what you showed in https://software-factotum.medium.com/writing-a-docker-log-driver-plugin-f94cee827a0a.

Start logging request was called for the container : {"File":"/run/docker/logging/10417f2cd63ea34a2928ea4816b6f912e95ffd6683cfcccb399b1489e618cca1","Info":{"Config":{},"ContainerID":"fd21ad91c0c1681ad9157042b2fe6a5515f0460204086eb71071ffa3999beff1","ContainerName":"/eager_blackburn","ContainerEntrypoint":"/usr/bin/testserver","ContainerArgs":[],"ContainerImageID":"sha256:b664862cf96941acc6e2320a6e7c0aaa40e3dc0953849415ee7459ec3855fc42","ContainerImageName":"testserverimg","ContainerCreated":"2019-03-13T13:28:09.281249181Z","ContainerEnv":["HTTP_PORT=9003","PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","GOLANG_VERSION=1.8.7","GOPATH=/go"],"ContainerLabels":{},"LogPath":"","DaemonName":"docker"}}
New Container added for logging : >
/run/docker/logging/10417f2cd63ea34a2928ea4816b6f912e95ffd6683cfcccb399b1489e618cca1 = fd21ad91c0c1681ad9157042b2fe6a5515f0460204086eb71071ffa3999beff1
fd21ad91c0c1681ad9157042b2fe6a5515f0460204086eb71071ffa3999beff1: [stderr] [1552483689861635661] 2019/03/13 13:28:09 Starting server on host localhost  and port 9003

I am seeing only:

Starting server on host localhost  and port 9003

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions