Docker Community Forums

Share and learn in the Docker community.

Console to few columns


(Careri) #1

I just switched from Stable to Edge release.

Things worked as expected in stable, but now when run an interactive image I get a word wrap in my interactive console at 44 chars.

I can tell from service.txt that it’s actually configured like that (ConsoleSize):

[11:18:36.329][WindowsDaemon ][Info ] debug: HCSShim::Container::CreateProcess id=621b00cd994e3b923c1f917692572af262c514a188a9c5fdce1473fb2f0e17eb config={“CommandLine”:“powershell”,“WorkingDirectory”:“C:\Prereq”,“EmulateConsole”:true,“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“ConsoleSize”:[44,164]}

My console looks like this. Notice that the output from ls is truncated, not wrapped.

Windows PowerShell
Copyright © 2016 Microsoft Corporation. All rights reserved.

PS C:\Prereq> 123456789012345678901234567890
123456789^C
PS C:\Prereq> ls

Directory: C:\Prereq

Mode LastWriteTime Length


d----- 10/18/2017 9:27 AM
-a---- 10/17/2017 9:37 AM 959
-a---- 10/18/2017 9:32 AM 995

If i run

mode con: cols=100 lines=30

I can at least get the output from ls. But the it still behaves strange.

Can I use my own value for the ConsoleSize being passed to CreateProcess?

Info

Containers: 7
Running: 1
Paused: 0
Stopped: 6
Images: 64
Server Version: 17.11.0-ce-rc2
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 16299 (16299.15.amd64fre.rs3_release.170928-1534)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 31.94GiB
Name: HEADSUTV180
ID: ZZCR:A3HU:JIHH:IQGL:XTA3:P4H2:VDVM:GZP3:HKOQ:IHT2:UKYK:WJ3A
Docker Root Dir: H:\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 46
System Time: 2017-11-08T11:51:01.4097031+01:00
EventsListeners: 1
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false