Raku / docker

Docker files for Rakudo Star
Artistic License 2.0
34 stars 22 forks source link

rlwrap: error: My terminal reports width=0 (is it emacs?) #3

Closed kforner closed 8 years ago

kforner commented 8 years ago

on ubuntu 14.04, with gnome-terminal and bash:

docker run -ti rakudo-star rlwrap: error: My terminal reports width=0 (is it emacs?) I can't handle this, sorry!

bhtek commented 8 years ago

I am having the same issue on Ubuntu as well as OpenSUSE.

hoelzro commented 8 years ago

@bhtek Which versions of Ubuntu/OpenSUSE? Are you also using gnome-terminal and bash?

@kforner @bhtek Which version of docker are you using?

kforner commented 8 years ago
> docker version 
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:12:04 UTC 2015
 OS/Arch:      linux/amd64
hoelzro commented 8 years ago

@kforner I tried spinning up an Ubuntu VM to test this out, but installing docker via apt gives me Docker 1.6.2. Did you build docker yourself, or is there a more up-to-date package I should try?

kforner commented 8 years ago

Which Ubuntu version ? Have you updated the package list ? The crurent version is 1.10 i think Le 12 avr. 2016 05:56, "Rob Hoelz" notifications@github.com a écrit :

@kforner https://github.com/kforner I tried spinning up an Ubuntu VM to test this out, but installing docker via apt gives me Docker 1.6.2. Did you build docker yourself, or is there a more up-to-date package I should try?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/perl6/docker/issues/3#issuecomment-208692761

moritz commented 8 years ago

@hoelzro https://docs.docker.com/engine/installation/linux/ubuntulinux/ has instructions for adding a package source which is more up-to-date.

hoelzro commented 8 years ago

@kforner The current version is something like 1.10, but that's what I have on my machine (Arch), so I want to try to be as precise as possible to try and duplicate this. @moritz Thanks for the link; I'll try that out!

hoelzro commented 8 years ago

@kforner Alright; I've updated docker according to @moritz' instructions; this is what I have on my Ubuntu VM:

Client:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:54:52 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.3
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   20f81dd
 Built:        Thu Mar 10 15:54:52 2016
 OS/Arch:      linux/amd64

This is on 14.04 and this setup works for me; would you mind upgrading to docker 1.10 to see if that resolves your issue?

hoelzro commented 8 years ago

@kforner Have you tried docker 1.10 to see if that fixes the problem?

kforner commented 8 years ago

Hi. No I can't. The 1.10 version is not compatible with my docker registry.

On Wed, Apr 27, 2016 at 2:02 AM, Rob Hoelz notifications@github.com wrote:

@kforner https://github.com/kforner Have you tried docker 1.10 to see if that fixes the problem?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/perl6/docker/issues/3#issuecomment-214924891

washort commented 8 years ago

I am seeing the same behavior on Docker 1.11.1.

hoelzro commented 8 years ago

For better or for worse, I was finally just able to reproduce this myself. Now hopefully I can actually fix it!

washort commented 8 years ago

I discovered this after creating my own docker image that uses rlwrap. Problem gets worse: I've tried it under docker 1.8.3 and docker 1.10.3 on a Debian host (both succeed), and under docker 1.10.3 (success) and 1.11.1 (failure) on Ubuntu. So I don't think it's: an rlwrap bug, a kernel bug, or a docker version-specific bug.

hoelzro commented 8 years ago

@washort The more I dig into this, the more I'm convinced it's a Docker bug. rlwrap is just asking the kernel for its terminal size; I'm guessing that Docker isn't properly initializing the terminal size for some reason.

washort commented 8 years ago

That's my impression. I did find that if I ran rlwrap from a bash prompt launched with docker run, it works. (But using bash -c did not.)

hoelzro commented 8 years ago

The docker image no longer uses rlwrap, so this should be fixed now.

bhtek commented 8 years ago

Awesome. Thanks. On 6/05/2016 10:34 AM, "Rob Hoelz" notifications@github.com wrote:

The docker image no longer uses rlwrap, so this should be fixed now.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/perl6/docker/issues/3#issuecomment-217334008