Skip to content

Add a note regarding retrieving log messages when tty is enabled#5321

Merged
mdlinville merged 1 commit into
docker:masterfrom
boaz0:strip_r_journald
Nov 17, 2017
Merged

Add a note regarding retrieving log messages when tty is enabled#5321
mdlinville merged 1 commit into
docker:masterfrom
boaz0:strip_r_journald

Conversation

@boaz0
Copy link
Copy Markdown
Contributor

@boaz0 boaz0 commented Nov 16, 2017

Proposed changes

When running a container with tty enabled and setting the journald
logging driver, you may see "blob data" instead of the real log
message.

That's because tty appends "\r" to the end of the log line,
which isn't stripped by jorunald unless you specify the "--all" flag.

Related issues (optional)

related to moby/moby#35416 and moby/moby#22450

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left some suggestions

Comment thread engine/admin/logging/journald.md Outdated
$ sudo journalctl -o json CONTAINER_NAME=webserver
```

### Note regarding Tty enabled containers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By starting with "Note" this becomes a ... wel, "note"; perhaps change the title to make it a regular example; something like;

### View logs for a container with a TTY enabled 

Comment thread engine/admin/logging/journald.md Outdated

### Note regarding Tty enabled containers

When Tty is enabled on a container you may see `[10B blob data]` in the output
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps: "If a TTY is enabled"

When running a container with tty enabled and setting the journald
logging driver, you may see "blob data" instead of the real log
message.

That's because tty appends "\r" to the end of the log line,
which isn't stripped by jorunald unless you specify the "--all" flag.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
@mdlinville mdlinville dismissed thaJeztah’s stale review November 17, 2017 20:09

Feedback addressed

@mdlinville mdlinville merged commit 0df910d into docker:master Nov 17, 2017
@boaz0
Copy link
Copy Markdown
Contributor Author

boaz0 commented Nov 18, 2017

Thank you! 🙌

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants