# prefect-server

Bradley Hurley

01/14/2022, 3:22 PM
Hi - I've encountered an issue, but I'm not sure its a bug because my situation is unique. Because of the upcoming license changes to Docker Desktop I have configured my local machine to use the Docker daemon on a VM thats already running on my local machine to support microk8s. When attempting to run a docker agent I encountered issues related to
. I dug into the source and realize the IP only gets set properly if the
starts with
. My host machine is OSX, but docker is running on Linux. Here is my prefect agent start command
Copy code
prefect agent docker start -b <tcp://> -l bh-docker --network prefect-server --log-level DEBUG --show-flow-logs --no-pull
locally I run
export DOCKER_HOST=<tcp://>
and then docker works as if it was running on my local machine

Kevin Kho

01/14/2022, 3:38 PM
Thanks for sharing! I don’t think we consider this a bug, but it’s great to learn from your experience!

Bradley Hurley

01/14/2022, 3:41 PM
Its kind of strange behavior since the agent supports running on a docker daemon that is not physically local to the machine with the
flag, but outside adding a new cli option Im not sure there is a great solution.