I have created 1G hugepages by providing boot params in Grub.
After booting created a mount point for hugepages as below.
mkdir -p /mnt/hugepages
mount -t hugetlbfs -o pagesize=1G node /mnt/hugepages
In the host I am able to see the mount,
[root@xxxxx ~]# cat /proc/mounts | grep huge
cgroup /sys/fs/cgroup/hugetlb cgroup rw,seclabel,nosuid,nodev,noexec,relatime,hugetlb 0 0
node /mnt/hugepages hugetlbfs rw,seclabel,relatime,pagesize=1G 0 0
But I dont see the mount in docker container
[root@xxxx ~]# docker run busybox cat /proc/mounts | grep huge
cgroup /sys/fs/cgroup/hugetlb cgroup ro,seclabel,nosuid,nodev,noexec,relatime,hugetlb 0 0
[root@xxxx ~]#
Also tried the same in previleged mode
[root@xxxx ~]# docker run --privileged busybox cat /proc/mounts | grep huge
cgroup /sys/fs/cgroup/hugetlb cgroup rw,seclabel,nosuid,nodev,noexec,relatime,hugetlb 0 0
[root@xxxx ~]#