Moved image name into config. runtime.Create() now receives a single Config parameter

This commit is contained in:
Solomon Hykes
2013-03-23 12:39:09 -07:00
parent 031f91df1a
commit 6ce64e8458
5 changed files with 88 additions and 62 deletions
+2 -2
View File
@@ -64,9 +64,9 @@ func (runtime *Runtime) containerRoot(id string) string {
return path.Join(runtime.repository, id)
}
func (runtime *Runtime) Create(image string, config *Config) (*Container, error) {
func (runtime *Runtime) Create(config *Config) (*Container, error) {
// Lookup image
img, err := runtime.repositories.LookupImage(image)
img, err := runtime.repositories.LookupImage(config.Image)
if err != nil {
return nil, err
}