moby: "New state of 'nil' is invalid" when attaching to container, probably related to UTF-8
Output of docker version
:
Client:
Version: 1.11.0
API version: 1.23
Go version: go1.5.4
Git commit: 4dc5990
Built: Wed Apr 13 18:13:28 2016
OS/Arch: windows/amd64
Server:
Version: 1.11.0
API version: 1.23
Go version: go1.5.4
Git commit: 4dc5990
Built: Wed Apr 13 18:38:59 2016
OS/Arch: linux/amd64
Output of docker info
:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.11.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 7
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.2.0-27-generic
Operating System: Ubuntu 15.10
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 488.9 MiB
Name: digitalocean
ID: AFWT:NTMS:3WR4:VOPE:JHGQ:D46Z:GR5R:GZ6N:4FUO:OUQP:A5JK:3JGG
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
provider=digitalocean
Steps to reproduce the issue:
Be on Windows. Have an active machine. Then run:
docker run -it ubuntu:14.04 bash
apt-get update
apt-get install -y mc
locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
mc
Describe the results you received:
< / New state of 'nil' is invalid.
and the connection is closed.
When re-attaching to the container, the same error happens.
Describe the results you expected: Connection stays open, interacting with Midnight Commander is possible.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 9
- Comments: 27 (9 by maintainers)
Redirecting to /dev/null (eg
npm install > /dev/null
) seems to be a workaround. Super annoying.Windows 7, same bug here, solved it with CMD+R -> Git Bash -> eval $(docker-machine env default) -> docker attach [cont id] and all ok - looks like russian symbols to console.log made this issue