Commit 652d90e1 authored by Michael Yang's avatar Michael Yang
Browse files

Update server/images.go


Co-authored-by: default avatarBruce MacDonald <brucewmacdonald@gmail.com>
parent bc22d5a3
...@@ -421,7 +421,7 @@ func CreateModel(ctx context.Context, name string, commands []parser.Command, fn ...@@ -421,7 +421,7 @@ func CreateModel(ctx context.Context, name string, commands []parser.Command, fn
case "template", "system": case "template", "system":
fn(api.ProgressResponse{Status: fmt.Sprintf("creating %s layer", c.Name)}) fn(api.ProgressResponse{Status: fmt.Sprintf("creating %s layer", c.Name)})
// remove duplicates layers // remove duplicate layers
layers = removeLayerFromLayers(layers, mediatype) layers = removeLayerFromLayers(layers, mediatype)
layer, err := CreateLayer(strings.NewReader(c.Args)) layer, err := CreateLayer(strings.NewReader(c.Args))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment