mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
graph: ensure _tmp dir is always removed
Also remove unused func `newTempFile` and prevent a possible deadlock between pull_v2 `attemptIDReuse` and graph `register` Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
committed by
Tibor Vass
parent
adfbdc361c
commit
f110597a78
@@ -215,6 +215,9 @@ func (s *DockerSuite) TestImagesEnsureOnlyHeadsImagesShown(c *check.C) {
|
||||
head, out, err := buildImageWithOut("scratch-image", dockerfile, false)
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
// this is just the output of docker build
|
||||
// we're interested in getting the image id of the MAINTAINER instruction
|
||||
// and that's located at output, line 5, from 7 to end
|
||||
split := strings.Split(out, "\n")
|
||||
intermediate := strings.TrimSpace(split[5][7:])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user