Error while compiling kernel with Docker Ubuntu 18.04 Image

I try to build an Jetson Nano Kernel in a Docker Ubuntu 18.04 Container. I get following compiler error while compiling the kernel modules:
make -C kernel/kernel-4.9/ O=$KERNEL_OUT -j2 --output-sync=target modules

CC [M] net/netfilter/xt_mark.o
/home/user/nano_b01_32.4.4/Linux_for_Tegra/source/public/kernel/kernel-4.9/net/netfilter/xt_mark.c: In function ‘mark_tg’:
/home/user/nano_b01_32.4.4/Linux_for_Tegra/source/public/kernel/kernel-4.9/net/netfilter/xt_mark.c:33:32: error: dereferencing pointer to incomplete type ‘const struct xt_mark_tginfo2’
skb->mark = (skb->mark & ~info->mask) ^ info->mark;
^~
/home/user/nano_b01_32.4.4/Linux_for_Tegra/source/public/kernel/kernel-4.9/net/netfilter/xt_mark.c: In function ‘mark_mt’:
/home/user/nano_b01_32.4.4/Linux_for_Tegra/source/public/kernel/kernel-4.9/net/netfilter/xt_mark.c:42:27: error: dereferencing pointer to incomplete type ‘const struct xt_mark_mtinfo1’
return ((skb->mark & info->mask) == info->mark) ^ info->invert;

I think the preprocessor uses a wrong include file.

Has anyone tried to compile the kernel with Docker?