Docker networking

I would like to know what the container sees in terms of a packet/frame. Does the container see the full mac frame or just the payload of the IP packet. What does the application see ? That is, is Ethernet and IP processed in the Kernel space or in the user space ?