Can I build a Docker container from the CLI against a remote daemon?

Viewed 7636

Currently I've the following setup:

  • An Hyper-V VM running Windows 10 on which is my dev machine. My CPU doesn't support nested virtualization.
  • Docker for Windows is installed on the host machine which runs Windows 10 too.

Is it possible to run docker build from the VM against Docker on the host machine?

2 Answers
export DOCKER_HOST=ssh://sammy@your_server_ip

then you can run docker build on your host machine

reference

Related