Skip to content

initial windows size of docker exec -it is too small #1492

Description

@lifubang

Description
initial windows size of docker exec -it is too small, I need to resize the window.
This is too inconvenient for me.

Steps to reproduce the issue:

  1. docker exec -it k8s_nginxgateway_apigateway-pxwj9_default_430f8bb0-dcb3-11e8-a770-00163e0aec56_0 /bin/bash
  2. vim /usr/local/nginx/conf/nginx.conf

Describe the results you received:
t0gq 6tu a s6 32wesg

Describe the results you expected:
the vim window size should be equal to the window's size.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
Version:	18.03.0-ce
API version:	1.37
Go version:	go1.9.4
Git commit:	0520e24
Built:	Wed Mar 21 23:10:01 2018
OS/Arch:	linux/amd64
Experimental:	false
Orchestrator:	swarm
Server:
Engine:
Version:	18.03.0-ce
API version:	1.37 (minimum version 1.12)
Go version:	go1.9.4
Git commit:	0520e24
Built:	Wed Mar 21 23:08:31 2018
OS/Arch:	linux/amd64
Experimental:	false

Output of docker info:

Containers: 25
Running: 24
Paused: 0
Stopped: 1
Images: 75
Server Version: 18.03.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-105-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.859GiB
Name: iz2zef7rx1lvm90vsghh9qz.acmcoder.mmttnn
ID: OQTM:H2HJ:U2XT:WKLC:U4ZY:EHVI:QTXN:W4GK:QDA4:LUDJ:LFN7:WG3V
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):
Aliyun cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions