moby: "Error resize: Error: bad file descriptor" using docker provided vagrant VM

I’m using docker v0.6.6, Vagrant 1.3.5, virtualbox 4.1.24 and the docker vagrantfile (with some minor modifications to forward some ports).

Steps to reproduce:

git clone https://github.com/dotcloud/docker.git
git checkout v0.6.6
vagrant up
vagrant ssh
sudo su
docker pull ubuntu
docker run -t -i -h=test1 8db /bin/bash -c true
while true; do docker run -t -i -h=test1 8db /bin/bash -c true && echo done && sleep 1; done

the last line just repeats docker run -t -i -h=test1 8db /bin/bash -c true.

It takes a few (say 10-15) repetitions before it gets there, but when it does:

[error] commands.go:2044 Error resize: Error: bad file descriptor

I’ve seen other mentions of vaguely similar error message (mainly in relation to upgrading lxc) but this is a fresh docker vagrant VM…shouldn’t be any issues I wouldn’t think? It wouldn’t be so bad it if consistently errored, but this inconsistency is quite unhelpful.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 36 (18 by maintainers)

Most upvoted comments

Running cgroup-lite fixed the issue for me as well.

Original error:

docker run -t -i dergachev/gdocs-export
#    [error] client.go:2315 Error resize: Error: bad file descriptor
sudo apt-get update && sudo apt-get install cgroup-lite
docker run -t -i dergachev/gdocs-export
#    SUCCESS

Here’s some context:

lsb_release -a
#    No LSB modules are available.
#    Distributor ID:    Ubuntu
#    Description:   Ubuntu 13.04
#    Release:   13.04
#    Codename:  raring

docker info
#    Containers: 16
#    Images: 13
#    Driver: aufs
#     Root Dir: /var/lib/docker/aufs
#     Dirs: 45
#    WARNING: No memory limit support
#    WARNING: No swap limit support

docker version
#    Client version: 0.9.0
#    Go version (client): go1.2.1
#    Git commit (client): 2b3fdf2
#    Server version: 0.9.0
#    Git commit (server): 2b3fdf2
#    Go version (server): go1.2.1
#    Last stable version: 0.9.1, please update docker