Skip to content

Enable viewing logs when Docker version >= 20.10 #8

Open
@pabloromeo

Description

I'm currently running Swarmpit but also using Loki (using their custom log-driver) for logging from all containers.
Now those longs aren't currently available in Swarmpit.
I believe that is because the buttons are disabled when the driver is not json-file our journald.
However, the logs are indeed available using "docker service logs", since i'm running docker 20.10.1, which supports "dual logging".

https://www.docker.com/blog/introducing-docker-engine-20-10/

Starting with Docker Engine 20.10, you can use docker logs to read container logs regardless of the configured logging driver or plugin. This capability, sometimes referred to as dual logging, allows you to use docker logs to read container logs locally in a consistent format, regardless of the remote log driver used, because the Engine is configured to log information to the “local” logging driver. Refer to “Configure the default logging driver “ in the Docker documentation for additional information

Any chance to get Logs in Swarmpit enabled when available, without having to change log-drivers on the containers?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions