Skip to content
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

a few cherry-picks #29150

Merged
merged 5 commits into from
Dec 6, 2016
Merged

a few cherry-picks #29150

merged 5 commits into from
Dec 6, 2016

Conversation

vieux
Copy link
Contributor

@vieux vieux commented Dec 5, 2016

return an empty stats if the container is restarting #28026
re-vendor syslog log driver #28670
api/server/httputils: ensure consistent status code #28530
run dnf upgrade before installing in fedora #29115
hack/make.sh: fix BUILDTIME #29082

In case, a container is restarting indefinitely running
"docker stats --no-stream <restarting_container>" is suspended.

To fix this, the daemon makes sure the container is either not
running or restarting if `--no-stream` is set to true and if so
returns an empty stats.

Should fix moby#27772.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
(cherry picked from commit 786a954)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
@vieux
Copy link
Contributor Author

vieux commented Dec 5, 2016

ping @vdemeester @tonistiigi

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 00caf03)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
@vieux vieux changed the title [1.12.x] Return an empty stats if the container is restarting [1.12.x] a few cherry-picks Dec 5, 2016
@vieux
Copy link
Contributor Author

vieux commented Dec 5, 2016

ping @cpuguy83

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@tonistiigi
Copy link
Member

LGTM

stevvooe and others added 2 commits December 5, 2016 14:30
Error code resolution is powered by string matching. Not the greatest
thing in the world and I hope no one is proud of this code, but it
works. However, because a map is used, the iteration order of the map is
random, such that if an error matches two of the snippets, it may return
a different error code depending on the seed of the hashmap. This change
converts it to use a slice instead.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 3484e02)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
(cherry picked from commit ebd804b)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
(cherry picked from commit 7b1f77d)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐸

@vdemeester vdemeester merged commit f966aae into moby:1.12.x Dec 6, 2016
@vieux vieux deleted the cherry_28026 branch December 6, 2016 19:04
@vieux vieux added this to the 1.12.4 milestone Dec 7, 2016
@vieux vieux changed the title [1.12.x] a few cherry-picks a few cherry-picks Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants