1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

post-merge repairs

This commit is contained in:
shin- 2013-03-11 07:39:06 -07:00
parent 2441edf1a3
commit 5d6199b925
4 changed files with 6 additions and 7 deletions

View file

@ -1,8 +1,8 @@
package client
import (
"github.com/dotcloud/docker/future"
"github.com/dotcloud/docker/rcli"
"../future"
"../rcli"
"io"
"io/ioutil"
"log"

View file

@ -2,7 +2,6 @@ package docker
import (
"./fs"
"bytes"
"encoding/json"
"errors"
"github.com/kr/pty"

View file

@ -1,8 +1,8 @@
package main
import (
"../client"
"flag"
"github.com/dotcloud/docker/client"
"log"
"os"
"path"

View file

@ -434,7 +434,7 @@ func (srv *Server) CmdPull(stdin io.ReadCloser, stdout io.Writer, args ...string
}
}
fmt.Fprintf(stdout, "Unpacking to %s\n", name)
img, err := srv.images.Create(resp.Body, nil, name, "")
img, err := srv.images.Create(archive, nil, name, "")
if err != nil {
return err
}
@ -614,7 +614,7 @@ func (srv *Server) CmdCommit(stdin io.ReadCloser, stdout io.Writer, args ...stri
}
if container := srv.containers.Get(containerName); container != nil {
// FIXME: freeze the container before copying it to avoid data corruption?
rwTar, err := docker.Tar(container.Mountpoint.Rw)
rwTar, err := fs.Tar(container.Mountpoint.Rw, fs.Uncompressed)
if err != nil {
return err
}
@ -651,7 +651,7 @@ func (srv *Server) CmdTar(stdin io.ReadCloser, stdout io.Writer, args ...string)
if err := container.Mountpoint.EnsureMounted(); err != nil {
return err
}
data, err := docker.Tar(container.Mountpoint.Root)
data, err := fs.Tar(container.Mountpoint.Root, fs.Uncompressed)
if err != nil {
return err
}