-
Notifications
You must be signed in to change notification settings - Fork 18.8k
17.03 cherry-picks #31266
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
17.03 cherry-picks #31266
Conversation
@vieux CI is failing
|
Signed-off-by: Antonio Murdaca <runcom@redhat.com> (cherry picked from commit 1cf4b2b) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> (cherry picked from commit 81630df) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Make sure that the cursor value returned by followJournal() is the last of the values returned by its goroutine's calls to drainJournal() by waiting for it, rather than returning a value that may be superceded by another if we're singalling the goroutine that it should exit by closing a pipe. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> (cherry picked from commit d57c330) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
d66abc6
to
7d9967a
Compare
This fix tries to fix the issue raised in 21845. The issue with 21845 is that if multiple `--volumes-from` with the same destination has been specified, then one volume will be overridden by the other. This will mess up with volumes reference and prevent the overridden volume from being removed at the end. Issue 21845 was observed with `docker-compose` though it is possible to emulate the same behavior with `docker` alone: ``` $ cat Dockerfile FROM busybox VOLUME ["/tmp/data"] $ docker build -t vimage . $ docker run --name=data1 vimage true $ docker run --name=data2 vimage true $ docker run --name=app --volumes-from=data1 --volumes-from=data2 -d busybox top $ docker rm -f -v $(docker ps -aq) $ docker volume ls $ docker volume rm ... ``` NOTE: Second case: ``` $ cat Dockerfile FROM busybox VOLUME ["/tmp/data"] $ docker build -t vimage . $ docker run --name=data1 vimage true $ docker run --name=data2 vimage true $ docker run --name=app --volumes-from=data1 --volumes-from=data2 -v /tmp/data:/tmp/data -d busybox top $ docker rm -f -v $(docker ps -aq) $ docker volume ls $ docker volume rm ... ``` NOTE: Third case: Combination of --volumes-from and `HostConfig.Mounts` (API only) This fix tries to address the issue by return an error if duplicate mount points was used with `--volumes-from`. An integration test has been added. This fix fixes 21845. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> (cherry picked from commit 9526e5c) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
CHANGELOG.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on close
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
I found that sometimes tasks would end up in a rejected state when trying to update them quickly. The problem was that Shutdown could fail if called before the container was started. Instead of returning an error in this case, Shutdown should succeed. This allows tasks to progress to the "shutdown" state as expected. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> (cherry picked from commit 37b492a) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦁
image/cache: fix isValidParent logic #31189
Prevent freeing a possible invalid pointer from journald #31231
Synchronize the cursor returned by followJournal #31263
Fix duplicate mount points for multiple
--volumes-from
indocker run
#29563Shutdown leaks an error when the container was never started #31279