Docker Community Forums

Share and learn in the Docker community.

Shell pipeline and docker run -i


(Piotr Domagalski) #1

Expected behavior

$ echo foo | docker run -i alpine cat
foo
$

This is the behaviour with latest Docker Toolbox.

Actual behavior

$ echo foo | docker run -i alpine cat
$

Information

OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta9
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Docker logs are being collected into /tmp/20160430-193915.tar.gz
Most specific failure is: No error was detected
Your unique id is: 2E308555-FE60-45EF-9345-C49A30CBCBAB
Please quote this in all correspondence.

(Rohinton Kazak) #2

I think the ‘actual’ should be that the string is not echoed.
That’s the issue you are reporting?


(Piotr Domagalski) #3

Yes, exactly - sorry for confusion, my initial submission had actual/expected reversed.