It looks like it's possible to use both phantomjs and selenium remotely by specifying a port and IP:
https://hub.docker.com/r/wernight/phantomjs/
https://github.com/SeleniumHQ/docker-selenium
If this was supported in python-myusps/home assistant it would facilitate using docker and separate containers for phantomjs/selenium. That way home assistant doesn't have to have those things in the docker container, and versions don't need to be tied together.
I guess there would need to be two optional params, port and IP, and if none were used it utilized the current (I presume) socket implementation.