Deprecate INSERT and COPY

Upstream-commit: a4e6025cc1103d1ad9c86fa5d75f832526d2a7b8
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-05-30 12:10:54 -07:00
parent 0319ab95bb
commit 79331052da

View File

@ -152,6 +152,14 @@ func (b *buildFile) CmdExpose(args string) error {
return b.commit("", b.config.Cmd, fmt.Sprintf("EXPOSE %v", ports))
}
func (b *buildFile) CmdInsert(args string) error {
return fmt.Errorf("INSERT has been deprecated. Please use ADD instead")
}
func (b *buildFile) CmdCopy(args string) error {
return fmt.Errorf("COPY has been deprecated. Please use ADD instead")
}
func (b *buildFile) CmdAdd(args string) error {
if b.context == "" {
return fmt.Errorf("No context given. Impossible to use ADD")