docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.21k stars 1.23k forks source link

Docker Quickstart Terminal cannot be resized permanently #408

Open AlexTelon opened 8 years ago

AlexTelon commented 8 years ago

Copy of an issue posted over at docker/docker but it belongs here. docker/docker#15739

MINGGW32 window cannot be resized permanently

Basically you have to redo your changes to the terminal every time.

Though there is this quick fix:

Quick fix: do it once, just, run the tool as admin, change the settings and close it. The terminal will always open with the newest changes. Comment from original issue

I got the issue on the following "specs" On windows 7 docker version:

Client:
 Version:      1.10.0
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   590d5108
 Built:        Thu Feb  4 18:18:11 2016
 OS/Arch:      windows/amd64

Server:
 Version:      1.10.0
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   590d5108
 Built:        Thu Feb  4 19:55:25 2016
 OS/Arch:      linux/amd64

docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.10.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: null host bridge
Kernel Version: 4.1.17-boot2docker
Operating System: Boot2Docker 1.10.0 (TCL 6.4.1); master : b09ed60 - Thu Feb  4 20:16:08 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 996.2 MiB
Name: default
ID: NMVE:63VZ:EDEL:ZCO5:3FG6:BDLU:CF7D:N57R:DLVW:IXRD:GK4B:BPAT
Debug mode (server): true
 File Descriptors: 10
 Goroutines: 21
 System Time: 2016-02-05T16:24:35.326478136Z
 EventsListeners: 0
 Init SHA1:
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox
SvenDowideit commented 8 years ago

can #323 help here? - doesn't look like it :/

jmorganca commented 8 years ago

@SvenDowideit @thaJeztah thanks for chiming in / pointing this to the right direction.

@AlexTelon we use the default Windows Terminal emulator for compatibility and unfortunately it doesn't provide resizing capabilities in Windows 7. You need to change the defaults via admin priv. for now.

slawekjaranowski commented 8 years ago

I have changed Docker Quickstart Terminal shortcut form: "C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" to: "C:\Program Files\Git\git-bash.exe" -i "C:\Program Files\Docker Toolbox\start.sh"

fabriziocucci commented 7 years ago

@slawekjaranowski solution works for me on Windows 7.

I'm just wondering if there is any side effect due to the omission of the --login flag...

fabriziocucci commented 7 years ago

Unfortunately, I think I just found a problem with @slawekjaranowski solution.

I'm not able to bash into a running container with:

docker exec -it <container-name> /bin/bash
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

Any solution?

declension commented 7 years ago

The other solution that worked for me was to give permissions to yourself (you'll need administrator of course)

  1. Right-click the icon
  2. Properties
  3. Security
  4. Edit
  5. Click your own user
  6. Select Full Control, and OK.

You should then be able to modify anything as normal