mirror of https://github.com/docker/docs.git
Remove unused Dockerfile instruction INSERT
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
This commit is contained in:
parent
f9b20ad9e4
commit
596e91638c
|
@ -16,7 +16,6 @@ const (
|
||||||
Expose = "expose"
|
Expose = "expose"
|
||||||
Volume = "volume"
|
Volume = "volume"
|
||||||
User = "user"
|
User = "user"
|
||||||
Insert = "insert"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Commands is list of all Dockerfile commands
|
// Commands is list of all Dockerfile commands
|
||||||
|
@ -35,5 +34,4 @@ var Commands = map[string]struct{}{
|
||||||
Expose: {},
|
Expose: {},
|
||||||
Volume: {},
|
Volume: {},
|
||||||
User: {},
|
User: {},
|
||||||
Insert: {},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -512,8 +512,3 @@ func volume(b *Builder, args []string, attributes map[string]bool, original stri
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// INSERT is no longer accepted, but we still parse it.
|
|
||||||
func insert(b *Builder, args []string, attributes map[string]bool, original string) error {
|
|
||||||
return fmt.Errorf("INSERT has been deprecated. Please use ADD instead")
|
|
||||||
}
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ func init() {
|
||||||
command.Expose: expose,
|
command.Expose: expose,
|
||||||
command.Volume: volume,
|
command.Volume: volume,
|
||||||
command.User: user,
|
command.User: user,
|
||||||
command.Insert: insert,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@ func init() {
|
||||||
command.Entrypoint: parseMaybeJSON,
|
command.Entrypoint: parseMaybeJSON,
|
||||||
command.Expose: parseStringsWhitespaceDelimited,
|
command.Expose: parseStringsWhitespaceDelimited,
|
||||||
command.Volume: parseMaybeJSONToList,
|
command.Volume: parseMaybeJSONToList,
|
||||||
command.Insert: parseIgnore,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue