mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update daemon and docker core to use new content addressable storage
Add distribution package for managing pulls and pushes. This is based on the old code in the graph package, with major changes to work with the new image/layer model. Add v1 migration code. Update registry, api/*, and daemon packages to use the reference package's types where applicable. Update daemon package to use image/layer/tag stores instead of the graph package Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
5fc0e1f324
commit
4352da7803
70 changed files with 2037 additions and 1282 deletions
|
@ -18,9 +18,7 @@ func (s *DockerSuite) TestSaveAndLoadRepoStdout(c *check.C) {
|
|||
dockerCmd(c, "run", "--name", name, "busybox", "true")
|
||||
|
||||
repoName := "foobar-save-load-test"
|
||||
out, _ := dockerCmd(c, "commit", name, repoName)
|
||||
|
||||
before, _ := dockerCmd(c, "inspect", repoName)
|
||||
before, _ := dockerCmd(c, "commit", name, repoName)
|
||||
|
||||
tmpFile, err := ioutil.TempFile("", "foobar-save-load-test.tar")
|
||||
c.Assert(err, check.IsNil)
|
||||
|
@ -40,10 +38,10 @@ func (s *DockerSuite) TestSaveAndLoadRepoStdout(c *check.C) {
|
|||
loadCmd := exec.Command(dockerBinary, "load")
|
||||
loadCmd.Stdin = tmpFile
|
||||
|
||||
out, _, err = runCommandWithOutput(loadCmd)
|
||||
out, _, err := runCommandWithOutput(loadCmd)
|
||||
c.Assert(err, check.IsNil, check.Commentf(out))
|
||||
|
||||
after, _ := dockerCmd(c, "inspect", repoName)
|
||||
after, _ := dockerCmd(c, "inspect", "-f", "{{.Id}}", repoName)
|
||||
|
||||
c.Assert(before, check.Equals, after) //inspect is not the same after a save / load
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue