Runtime hacks (#1344)

* Add Args/Image to runtime

* remove the hacks
This commit is contained in:
Asim Aslam
2020-03-13 18:39:59 +00:00
committed by GitHub
parent 3543b275e0
commit e803fb0855
12 changed files with 166 additions and 102 deletions

View File

@@ -3,6 +3,7 @@ package runtime
import (
"io"
"strconv"
"strings"
"sync"
"time"
@@ -41,11 +42,8 @@ func newService(s *Service, c CreateOptions) *service {
var args []string
// set command
exec = c.Command[0]
// set args
if len(c.Command) > 1 {
args = c.Command[1:]
}
exec = strings.Join(c.Command, " ")
args = c.Args
return &service{
Service: s,