Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error piping on docker #958

Closed
giggio opened this issue Nov 18, 2016 · 7 comments
Closed

Error piping on docker #958

giggio opened this issue Nov 18, 2016 · 7 comments

Comments

@giggio
Copy link

giggio commented Nov 18, 2016

Versions

ConEmu build: x64
ConEmu version: 16.10.22.0
OS version: Windows 10 x64 (Version 1607 OS Build 14393.447)
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): ???

Problem description

When using Docker for Windows, while using Linux containers, if you run on Conemu:

And PowerShell:

 echo 'FROM hello-world' | docker build -t temp -

or

'FROM hello-world' | docker build -t temp -

Or on cmd:

echo FROM hello-world | docker build -t temp -

You get this error:

unable to prepare context: failed to peek context header from STDIN: Incorrect function.

This is NOT an error with Docker, the command works on cmd and PowerShell without Conemu.

Docker version:

C:\>docker version
Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Thu Oct 27 00:09:21 2016
 OS/Arch:      windows/amd64
 Experimental: true

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Thu Oct 27 00:09:21 2016
 OS/Arch:      linux/amd64
 Experimental: true

Steps to reproduce

  1. Type the command:
echo 'FROM hello-world' | docker build -t temp -

Actual results

unable to prepare context: failed to peek context header from STDIN: Incorrect function.

Expected results

Docker run without errors

@Maximus5
Copy link
Owner

Please report this top Docker team
Third-party application problems

@giggio
Copy link
Author

giggio commented Nov 19, 2016

This is not an error on the docker client. The error only happens when the command runs in Conemu. It does not happen on plain PowerShell or plain CMD. It is clearly an error in Conemu.

@Maximus5
Copy link
Owner

It would be an error in ConEmu, if Docker acts absolutely the same way in ConEmu as in raw conhost.
But it does not!
Brief look into issues will prove that!
Docker true to determine ConEmu presence and behave differently.
Again. Report to the Docker's team.

@giggio
Copy link
Author

giggio commented Nov 24, 2016

Ok, so Docker is screwing up. I am closing the issue and opening another one there.

@giggio giggio closed this as completed Nov 24, 2016
@giggio
Copy link
Author

giggio commented Nov 24, 2016

Opened moby/moby#28814, so anyone with the same error can follow up.

@sergluka
Copy link

sergluka commented Apr 20, 2017

As a workaround, disabling ConEmu Settings -> Features -> ANSI and xterm sequences helped me.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants