We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 388ec24 + 7fd5f5c commit c45cd57Copy full SHA for c45cd57
frontend/dockerfile/dockerfile2llb/convert_norundevice.go
@@ -5,8 +5,12 @@ package dockerfile2llb
5
import (
6
"github.com/moby/buildkit/client/llb"
7
"github.com/moby/buildkit/frontend/dockerfile/instructions"
8
+ "github.com/pkg/errors"
9
)
10
-func dispatchRunDevices(_ *instructions.RunCommand) ([]llb.RunOption, error) {
11
+func dispatchRunDevices(c *instructions.RunCommand) ([]llb.RunOption, error) {
12
+ if len(instructions.GetDevices(c)) > 0 {
13
+ return nil, errors.Errorf("device feature is only supported in Dockerfile frontend 1.14.0-labs or later")
14
+ }
15
return nil, nil
16
}
0 commit comments