Bug 1281552 - Default logdriver breaks "docker logs"
Summary: Default logdriver breaks "docker logs"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 18:34 UTC by Marius Vollmer
Modified: 2015-12-16 14:55 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-16 14:55:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marius Vollmer 2015-11-12 18:34:23 UTC
Description of problem:

The logdriver used by docker.service ("journald") doesn't allow reading of logs via "docker logs".

Version-Release number of selected component (if applicable):

docker-1.8.2-10.git28c300f.fc23.x86_64

How reproducible:

Always

Steps to Reproduce:
1. virt-builder fedora-23
2. # dnf install docker
3. # systemctl start docker
4. # docker run --name bugger busybox /bin/echo hi
5. # docker logs bugger

Actual results:

logs" command is supported only for "json-file" logging driver (got: journald)

Expected results:

hi

Comment 1 Daniel Walsh 2015-11-13 14:55:13 UTC
This should only be set when we go to docker-1.9 which supports journald as a backend for docker logs.

Comment 2 Stef Walter 2015-11-17 10:20:36 UTC
This breaks Cockpit and its integration tests.

Comment 4 Daniel Walsh 2015-12-01 22:03:31 UTC
Lokesh we need a new docker-1.9 for Fedora 23

Comment 5 Colin Walters 2015-12-16 14:55:45 UTC
This is fixed in docker-1.9.1-4 (Fedora Atomic Host 22.32).


Note You need to log in before you can comment on or make changes to this bug.