How can a script distinguish Docker Toolbox and Docker for Windows?
问题 On my current team, we're still transitioning from Docker Toolbox to Docker Desktop for Windows . A lot of our scripts still assume that you're running Docker Toolbox on VirtualBox (like how to mount drives, how slashes or drive names work for those mounts). Is there a reliable way to tell, from inside a script, whether docker is coming from Docker Toolbox or Docker Desktop for Windows? 回答1: Toolbox works via docker-machine . The way the docker client is directed to the virtual machine is via