docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.21k stars 1.23k forks source link

Issue Running Hello World Example in the Docker Toolbox #392

Open Sephster opened 8 years ago

Sephster commented 8 years ago

When using the Docker Quickstart Terminal, if I run the command docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" the daemon container exits.

Using docker logs I get the following output: true;: 1: true;: Syntax error: end of file unexpected

I can get the command to run by connecting via ssh through the windows terminal. Details of others having this issue can be found in Stack Overflow

I am running Docker version 1.9.1

SvenDowideit commented 8 years ago

sadly, it seems to work on my windows install of 1.10 - running in the quickstart-cli and in cmd.exe

perhaps there's some change in the new release, or something different about my windows 10 box :/

@Sephster - do can you provide some more details?

Sephster commented 8 years ago

I'm running Windows 10 64bit. It seems that the command line is not reading the quotation marks correctly as I get the same problem running other commands that require quotes.

The only way I can get around this is by connecting to the docker machine via ssh and running the command that way.

I tried to see if I can run the command in cmd.exe but unfortunately I get the following message when trying to set up the environment:

'eval' is not recognized as an internal or external command

I haven't pursued this as I'm guessing it is a separate issue to the one I have reported and probably something I can easily fix.