Running docker shell on Windows

I’ve just installed Docker toolbox 1.9.1 (only docker itself plus Kitematic as I already have both VirtualBox and Git for Windows installed). Clicking on Docker Quickstart Terminal icon wasn’t working so I had to associate it with C:\Program Files (x86)\Git\bin\bash.exe as suggested. Now it starts fine but I’m unable to run docker command:

enter image description here

  • How to run install pip requirements from private repo in google cloud source?
  • Docker - only image with operating system?
  • Docker compose getting stuck
  • Enable SSL on GitLab with Docker on Synology NAS
  • env file-named volume in docker-compose
  • Oauth2 with hub.docker.com
  • Kitematic works just fine but I need the shell. How do I fix it?

  • Secure Admin must be enabled to access the DAS remotely - Acess Glassfish Admin Console with Docker
  • docker with wildfly HA in domain mode
  • Eval command not found when completing the Docker for Windows tutorial
  • Cannot install gems from git in dockerized rails app
  • Docker run centos6 command fails
  • Backup of Docker image
  • 2 Solutions collect form web for “Running docker shell on Windows”

    Check where docker-machine.exe has been installed (or copy the latest released one in your %PATH%) and use that, instead of the quickstart.
    From a regular CMD session:

    # find the name of the machine created.
    docker-machine ls
    docker-machine env --shell cmd <nameOfTheMachine>
    docker machine ssh <nameOfTheMachine>
    

    The shell you are after is the one provided by the Linux TinyCore boot2docker.iso image managed by VirtualBox.
    Not the git-bash installed on your Windows host.

    Here is an alternative option. Create the following docker.cmd batch:

    cd "%ProgramFiles%\Docker Toolbox"
    
    "%ProgramFiles(x86)%\Git\bin\bash.exe" --login -i "%ProgramFiles%\Docker Toolbox\start.sh"
    

    Now you need to start the default VM in your Oracle VirtualBox Manager (created automatically when you installed Docker for Windows):

    enter image description here

    and then the batch:

    enter image description here

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