-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX docker ps (List containers) uses screen width, should use window width #30050
Comments
I don't think this is possible; it's the terminal wrapping the output, and the same is true for any command. For example; running this in a 80-character wide terminal;
When resizing the terminal; the output is re-wrapped;
Truncating the output would be possible but result in information getting lost to the user, and truncating at the terminal width (and monitor for change in width) would mean that the docker CLI would have to keep running (i.e. not terminate after the command was executed). Note that you can disable wrapping in the terminal using;
And re-enable with
|
There are things that can be done (see the Ultimately though, I personally don't need several of the columns, so I just specify a custom format in |
I'm closing this issue because this is not something we can address, but hope the hints above are helpful for you; feel free to comment though after I closed |
Description:
when using docker ps on a terminal window that is less than screen width, the output does not look pretty
How to reproduce:
Expected result
output is formatted so each container is on 1 row:
Actual result:
output is formatted as if the terminal windows width is the same as the screens:
The text was updated successfully, but these errors were encountered: