Repository navigation
Truncate the names list on ps - #7686
Merged
Merged
Conversation
Contributor
Author
|
ping @vieux |
Contributor
|
LGTM |
Contributor
|
Do you think 40 chars it too long for the truncated version? |
Contributor
Author
|
40 chars was admitedly, quite arbitrary. My thought was that I would like to be able to see the first name completely and that may be in a format similar to |
Signed-off-by: Robert Bittle <[email protected]>
Contributor
Author
|
I changed it to just print the full first name |
Contributor
|
Nice, I like that idea better |
Contributor
|
LGTM |
crosbymichael
added a commit
that referenced
this pull request
Aug 27, 2014
Truncate the names list on ps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This keeps the output readable even when a container has a lot of names. This can easily happen if you are developing with a testing image that links to another image. I see this happen all the time while using fig.
For example if you are running a test build that requires a mongo image:
After the first run you're names list on the mongo image is
build_1/mongo,mongoAfter the second run you're names list on the mongo image is
build_2/mongo,build_1/mongo,mongoAfter the 100th run running
docker psis very difficult to read.This pull request simply truncates the names list by default the same way that the id and command are already truncated. If you need to see the whole list you just run
docker ps --no-trunc.