A probably dumb question about Docker

Hey folks, sorry for the vague question, but I’m trying to confirm something before I go into deeper troubleshooting. I’ve got HA installed as a virtual machine via VirtualBox on a Win 10 PC. Recently I wanted to play with an app that uses Docker (Plex Meta Manager) so I installed docker on the same PC. I assumed that since the HA machine was totally virtual, there wasn’t a risk of this disrupting HA, but after installing Docker, HA sometimes fails to boot, getting stuck on a message that says something about Docker. (I haven’t been able to get it to do it lately or I’d have the exact message.)

Obviously this is not a lot of info, but can someone confirm or deny my assumption that installing Docker on the same host PC shouldn’t interfere with HA running on its own virtual machine? Thanks a ton!

Host networking for docker may cause issues since it may grab port used by VM.

Docker container using port from virtual host may cause issues.

VM + docker on same machine with no conflicting ports or resources(both grabbing same serial port or usb may cause issue but I’m not sure) I would think is completely OK

Thanks. I think I’ve confirmed it’s Docker related. If I boot the Home Assistant VM while Docker isn’t running, it starts just fine. But if I try after Docker has started, I’m seeing any number of hangs. It either stops or stalls for a long time on “A start job is running for docker” or “A start job is running for HassOS Supervisor”. If it does eventually boot, HA is flaky and loses connection.

Unfortunately I’m a huge novice with Docker. Any tips on making sure they don’t grab the same resources?

What is docker run command you are using?

I’m seeing the issue as soon as I start Docker Desktop (the windows app). I don’t even have to have any containers started.

The more I look into this, it seems like VirtualBox and Docker have a history of not playing well together. I may try to use something other than Docker for what I need.

Place docker inside a vm

Frankly neither ha nor docker are great on windows. Buy a lower end pc and use debian linux

2 Likes

Yeah I may have to do the docker in a vm solution. Okay, thanks for the help guys!