I am using the docker desktop in Ubuntu 20.04 LTS Focal. I am just creating the macvlan network and Running container with that network.
when I Execute the following commands without sudo privilege
Docker container IP Address is configured but IP Address is not pinging and the containers are showing in the docker desktop.
when I Execute the following commands with sudo privilege
Docker container IP Address is configured and IP Address also pinging , but the containers are not showing in the docker desktop.
Docker Desktop runs the docker engine always in a vm, regardless whether its on Linux, MacOS or Windows. As such the vm will use an IP, which does not belong to your host’s network.
I am not sure how much sense it makes to run a macvlan network with Docker Desktop.
Can you do a docker context ls and sudo docker context ls to make sure that both users actualy use the same context.
I understand you didn’t like my last answer. Though, there is nothing to add to what I already wrote…
As to my knowledge, only docker ce is able to “integrate” macvlan networks into your local lan, as the docker engine runs on a host that is already part of your local lan. This is not the case with Docker Desktop.