Paste limited to 50 chars when run in Docker container on Windows #32

Closed
opened 2026-01-30 21:40:07 +00:00 by claunia · 18 comments
Owner

Originally created by @dhirschfeld on GitHub (Dec 14, 2017).

When pasting text into powershell in a Windows container the text is truncated at 50 characters which makes for a very frustrating and unproductive user experience.

This effect is most notable in powershell becaue of an unfortuante interaction with PSReadline however unusual/undersirable behaviour is also observed in a plain cmd terminal leading to (IIUC) the conclusion that the underlying problem is with the console itself.

This issue has been previously opened in 3 separate repositories:

...however I'm opening it here as all those issues have been closed under the assumption that the problem lies with the console itself

Originally created by @dhirschfeld on GitHub (Dec 14, 2017). When pasting text into powershell in a Windows container the text is truncated at 50 characters which makes for a very frustrating and unproductive user experience. This effect is most notable in powershell becaue of an unfortuante interaction with PSReadline however [unusual/undersirable behaviour](https://github.com/lzybkr/PSReadLine/issues/460#issuecomment-345609929) is also observed in a plain `cmd` terminal leading to (IIUC) the conclusion that the underlying problem is with the console itself. This issue has been previously opened in 3 separate repositories: * lzybkr/PSReadLine#460 * moby/moby#27793 * PowerShell/PowerShell#5501 ...however I'm opening it here as all those issues have been closed under the assumption that the problem lies with the console itself
claunia added the Resolution-Fix-AvailableResolution-ExternalNeeds-Tag-Fix labels 2026-01-30 21:40:07 +00:00
Author
Owner

@dhirschfeld commented on GitHub (Dec 14, 2017):

In the PSReadline issue @jstarks commented:

Agreed that this is annoying. We're hoping to improve the console API compatibility in windowsservercore in the next Windows release, which I suspect will resolve this and several other issues. Currently I don't have any plans to debug this with the current set of images, unfortunately.

My main goal in opening the issue here it so I can follow any progress in fixing the problem, and in particular if there is any estimated timeline for a fix being released.

@dhirschfeld commented on GitHub (Dec 14, 2017): In the PSReadline issue @jstarks [commented](https://github.com/lzybkr/PSReadLine/issues/460#issuecomment-341729742): > *Agreed that this is annoying. We're hoping to improve the console API compatibility in `windowsservercore` in the next Windows release, which I suspect will resolve this and several other issues. Currently I don't have any plans to debug this with the current set of images, unfortunately.* My main goal in opening the issue here it so I can follow any progress in fixing the problem, and in particular if there is any estimated timeline for a fix being released.
Author
Owner

@zadjii-msft commented on GitHub (Dec 18, 2017):

This is technically an issue with Docker on Windows, but yes, we're working on a solution.

@zadjii-msft commented on GitHub (Dec 18, 2017): This is technically an issue with Docker on Windows, but yes, we're working on a solution.
Author
Owner

@flupkede commented on GitHub (Jan 23, 2018):

It's just amazing that something as trivial as this is simply not working. Welcome old fashioned DOS!

@flupkede commented on GitHub (Jan 23, 2018): It's just amazing that something as trivial as this is simply not working. Welcome old fashioned DOS!
Author
Owner

@cblackuk commented on GitHub (Feb 15, 2018):

@zadjii-msft Cannot wait for this to be fixed... it is so annoying... Any workaround in the interim?

@cblackuk commented on GitHub (Feb 15, 2018): @zadjii-msft Cannot wait for this to be fixed... it is so annoying... Any workaround in the interim?
Author
Owner

@dhirschfeld commented on GitHub (Feb 15, 2018):

See https://github.com/lzybkr/PSReadLine/issues/460#issuecomment-341733715 for a workaround.

@dhirschfeld commented on GitHub (Feb 15, 2018): See https://github.com/lzybkr/PSReadLine/issues/460#issuecomment-341733715 for a workaround.
Author
Owner

@cblackuk commented on GitHub (Feb 15, 2018):

@dhirschfeld Saved my life! Thanks a lot!

@cblackuk commented on GitHub (Feb 15, 2018): @dhirschfeld Saved my life! Thanks a lot!
Author
Owner

@cblackuk commented on GitHub (Feb 15, 2018):

@dhirschfeld This allows me to paste fine but now you cannot go back a character or word it just deletes everything if you want to edit whatever you typed or pasted. Any workaround for that?

@cblackuk commented on GitHub (Feb 15, 2018): @dhirschfeld This allows me to paste fine but now you cannot go back a character or word it just deletes everything if you want to edit whatever you typed or pasted. Any workaround for that?
Author
Owner

@zadjii-msft commented on GitHub (Feb 15, 2018):

I'll defer back to @jstarks who is more familiar with Windows containers and might be able to share more information on the subject.

@zadjii-msft commented on GitHub (Feb 15, 2018): I'll defer back to @jstarks who is more familiar with Windows containers and might be able to share more information on the subject.
Author
Owner

@DougPlumley commented on GitHub (May 11, 2018):

No updates on this huh? Still seems to be an issue.

@DougPlumley commented on GitHub (May 11, 2018): No updates on this huh? Still seems to be an issue.
Author
Owner

@zadjii-msft commented on GitHub (May 11, 2018):

Actually @jstarks might be able to comment on this. There should be a fix going in to CExecSvc (which powers docker server on windows) to fix this, but I'm not really sure about their release schedule.

@zadjii-msft commented on GitHub (May 11, 2018): Actually @jstarks might be able to comment on this. There should be a fix going in to CExecSvc (which powers docker server on windows) to fix this, but I'm not really sure about their release schedule.
Author
Owner

@jsturtevant commented on GitHub (Jul 30, 2018):

This is fixed on the Windows 2019 preview image. You can try it out on azure:

image

@jsturtevant commented on GitHub (Jul 30, 2018): This is fixed on the Windows 2019 preview image. You can try it out on azure: ![image](https://user-images.githubusercontent.com/648372/43410839-226cf66a-93dd-11e8-8d96-4593721026a2.png)
Author
Owner

@dhirschfeld commented on GitHub (Jul 30, 2018):

Will that fix make it to 1803 or 1809?

@dhirschfeld commented on GitHub (Jul 30, 2018): Will that fix make it to `1803` or `1809`?
Author
Owner

@zadjii-msft commented on GitHub (Jul 30, 2018):

I'd presume it's only for 1809. I don't think the Docker team was able to use our work for #57 in 1803.

@zadjii-msft commented on GitHub (Jul 30, 2018): I'd presume it's only for 1809. I don't think the Docker team was able to use our work for #57 in 1803.
Author
Owner

@malcolm-boden commented on GitHub (Oct 30, 2018):

Is there any of this working on 1607 ?

@malcolm-boden commented on GitHub (Oct 30, 2018): Is there any of this working on 1607 ?
Author
Owner

@zadjii-msft commented on GitHub (Oct 30, 2018):

@malcolm-boden Nope, conpty support was only added in 1809 (October 2018 release), so you'll have to upgrade to a newer version to get the fix.

@zadjii-msft commented on GitHub (Oct 30, 2018): @malcolm-boden Nope, conpty support was only added in 1809 (October 2018 release), so you'll have to upgrade to a newer version to get the fix.
Author
Owner

@robe070 commented on GitHub (Feb 20, 2019):

Still in 1809 👎

@robe070 commented on GitHub (Feb 20, 2019): Still in 1809 👎
Author
Owner

@triynko commented on GitHub (Apr 25, 2021):

2021, latest version of docker and CANNOT PASTE A SINGLE FULL COMMAND INTO DOCKER. Where did this 50 character limit come from? It makes no sense.

@triynko commented on GitHub (Apr 25, 2021): 2021, latest version of docker and CANNOT PASTE A SINGLE FULL COMMAND INTO DOCKER. Where did this 50 character limit come from? It makes no sense.
Author
Owner

@DHowett commented on GitHub (Apr 26, 2021):

We’ve pretty well proven that the issue isn’t in this repository or in the console or the terminal, so somebody is going to have to report the issue wherever it truly belongs.

@DHowett commented on GitHub (Apr 26, 2021): We’ve pretty well proven that the issue isn’t in this repository or in the console or the terminal, so somebody is going to have to report the issue wherever it truly belongs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#32