How to setup the Docker network to enable communication between the host and docker containers?

MacVLAN is for assigning LAN IPs to containers, but that also means you will not be able to access the container from the host. I really never missed MacVLAN as containers are not VMs and processes on a normal machines wouldn’t have thei own IP address anyway. The default bridge network would work. If you still want to use MacVLAN, @meyay wrote about a solution here: