Bug 1281552

Summary: Default logdriver breaks "docker logs"
Product: [Fedora] Fedora Reporter: Marius Vollmer <mvollmer>
Component: dockerAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: adimania, admiller, dwalsh, ichavero, jcajka, jchaloup, lsm5, miminar, stefw, vbatts, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 14:55:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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).