-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Piping content to a container fails #3298
Comments
Thanks for writing this issue up. I was able to reproduce this on Windows 10 using version 1.6.1. When I tried a similar thing on Linux (using the command You say that there was nothing in the logs for the hadolint container, but I couldn't see any hadolint container at all:
I see the following in docker.log:
This needs further investigation, but this might be pointing towards a problem with cri-dockerd? Not sure if it's related, but I see a bunch of messages like this in cri-dockerd.log:
|
Looks like a duplicate of #2094 |
Thanks for the replies. @adamkpickering @jandubois |
@jandubois shall we close this one then? |
Yes, let's close as a duplicate of #2094. |
Actual Behavior
I have been investigating replacing Docker Desktop with Rancher Desktop, I ran across some weird behaviour when piping content in to docker run:
Get-Content .\Dockerfile | docker run --rm -i hadolint/hadolint
Side note: This is a very basic use case and as per the guide: https://github.com/hadolint/hadolint
Actual behaviour: The command prompt (pwsh) hangs until the docker container is stopped from another terminal.
There are insufficient logs to pinpoint the issue, however the repro steps are very simple.
Steps to Reproduce
Installed:
Rancher Desktop 1.6.1, using dockerd (Moby) / run the following command in PowerShell, piping in any file.
Get-Content .\Dockerfile | docker run --rm -i hadolint/hadolint
Result
The task hangs / does not complete. Logs for the hadolint container are empty and it appears nothing happens.
Expected Behavior
The task should complete with console output to the PowerShell window and a suitable exit code returned.
When run with a README.md file, and using Docker Desktop, the reponse was:
Additional Information
No response
Rancher Desktop Version
1.6.1
Rancher Desktop K8s Version
N/A
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10, 21H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
N/A
The text was updated successfully, but these errors were encountered: