Can't execute boot2docker command on TeamCity command line build step

I am trying to add docker commands on TeamCity build steps using the normal command line option. I have Windows environment so I have to use boot2docker.

I can execute the command like:
"C:\Program Files\Boot2Docker for Windows\boot2docker.exe" ssh docker images on Windows command line. It will return a list of my docker images.

  • How to manage deployment?
  • No 'Access-Control-Allow-Origin' react express docker app
  • zeppelin can't communicate with Cassandra (docker, windows 10 host)
  • Uncaught exception 'RedisException' with message 'Connection closed'
  • Cannot restore nuget packages of mono project under Gitlab CI docker environment
  • ELK for spring boot application using docker - performance issues
  • However, I’m not able to run the same command on TeamCity using the Command Line runner type. I always get the error message error in run: VM "boot2docker-vm" is not running.
    enter image description here

    enter image description here

    Anyone get ideas? Thanks.

  • 2 processes on same port?
  • How to watch xvfb session that's inside a docker on remote server from my local browser?
  • Throttling Disk Utilization
  • Do I need a docker-machine with dlite?
  • docker for windows mount a folder but can't open it after several hours
  • Docker: share private key via arguments
  • One Solution collect form web for “Can't execute boot2docker command on TeamCity command line build step”

    The error message is clear: boot2docker-vm is not running

    Login on your server and run boot2docker up on its command line. That will start the boot2docker VM. Then try again.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.