Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

rkt: disable fetch progress bar when running under systemd #1282

Closed
philips opened this issue Aug 17, 2015 · 1 comment
Closed

rkt: disable fetch progress bar when running under systemd #1282

philips opened this issue Aug 17, 2015 · 1 comment

Comments

@philips
Copy link
Contributor

philips commented Aug 17, 2015

Run rkt under a systemd unit like this:

$ sudo systemd-run --uid=0 ./rkt --debug run --insecure-skip-verify run docker://redis

Now check out the log lines as it is fetching the image:

$ journalctl -u run-1264.service  -f
-- Logs begin at Mon 2015-08-17 01:20:44 UTC. --
Aug 17 06:36:55 core-01 rkt[1265]: [1.9K blob data]
Aug 17 06:37:09 core-01 rkt[1265]: [1.9K blob data]

Not super useful. We need to disable the progress bar and just print out progress instead when we detect that we aren't on an interactive TTY.

@iaguis
Copy link
Member

iaguis commented Aug 26, 2015

I did a quick test and even if we print simple numbers with the ioprogress library the output is [23B blob data] so we'd have to modify it somehow or implement our custom progress.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants