oci: Use container ID as ID instead of container name

Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
Mrunal Patel 2017-06-23 15:01:05 -07:00
parent 033f6885c1
commit 67504a02d5
2 changed files with 11 additions and 11 deletions

View file

@ -49,7 +49,7 @@ func (ss streamService) Exec(containerID string, cmd []string, stdin io.Reader,
if tty {
args = append(args, "-t")
}
args = append(args, c.Name())
args = append(args, c.ID())
args = append(args, cmd...)
execCmd := exec.Command(ss.runtimeServer.runtime.Path(c), args...)
var cmdErr error