Index: pkg/mod/github.com/docker/docker@v20.10.7+incompatible/pkg/system/mknod.go --- pkg/mod/github.com/docker/docker@v20.10.7+incompatible/pkg/system/mknod.go 23:21:57.000000000 +0100 +++ pkg/mod/github.com/docker/docker@v20.10.7+incompatible/pkg/system/mknod.go 23:31:17.158815000 +0100 @@ -9,7 +9,7 @@ // Mknod creates a filesystem node (file, device special file or named pipe) named path // with attributes specified by mode and dev. func Mknod(path string, mode uint32, dev int) error { - return unix.Mknod(path, mode, dev) + return unix.Mknod(path, mode, uint64(dev)) } // Mkdev is used to build the value of linux devices (in /dev/) which specifies major Index: pkg/mod/github.com/tonistiigi/fsutil@v0.0.0-20201103201449-0834f99b7b85/diskwriter_unix.go --- pkg/mod/github.com/tonistiigi/fsutil@v0.0.0-20201103201449-0834f99b7b85/diskwriter_unix.go 23:31:17.158957000 +0100 +++ pkg/mod/github.com/tonistiigi/fsutil@v0.0.0-20201103201449-0834f99b7b85/diskwriter_unix.go 23:31:56.952363000 +0100 @@ -45,7 +45,7 @@ mode |= syscall.S_IFBLK } - if err := syscall.Mknod(path, mode, int(mkdev(stat.Devmajor, stat.Devminor))); err != nil { + if err := syscall.Mknod(path, mode, uint64(mkdev(stat.Devmajor, stat.Devminor))); err != nil { return errors.WithStack(err) } return nil