File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ import (
3030 "github.com/containerd/containerd/errdefs"
3131 "github.com/containerd/containerd/log"
3232 "github.com/containerd/containerd/mount"
33+ "github.com/containerd/containerd/platforms"
3334 "github.com/containerd/containerd/plugin"
3435 "github.com/containerd/containerd/snapshots"
3536 "github.com/containerd/containerd/snapshots/devmapper/dmsetup"
3637 "github.com/containerd/containerd/snapshots/storage"
3738 "github.com/hashicorp/go-multierror"
38- ocispec "github.com/opencontainers/image-spec/specs-go/v1"
3939 "github.com/pkg/errors"
4040 "github.com/sirupsen/logrus"
4141)
@@ -46,10 +46,7 @@ func init() {
4646 ID : "devmapper" ,
4747 Config : & Config {},
4848 InitFn : func (ic * plugin.InitContext ) (interface {}, error ) {
49- ic .Meta .Platforms = append (ic .Meta .Platforms , ocispec.Platform {
50- OS : "linux" ,
51- Architecture : "amd64" ,
52- })
49+ ic .Meta .Platforms = append (ic .Meta .Platforms , platforms .DefaultSpec ())
5350
5451 config , ok := ic .Config .(* Config )
5552 if ! ok {
You can’t perform that action at this time.
0 commit comments