Compose: Broken terminal output with docker-compose run

Created on 8 Jun 2017  路  5Comments  路  Source: docker/compose

The terminal output seems to be missing line position resets when running an interactive terminal.

Version 17.06.0-rc2-ce-mac14 (18280)
Channel: edge
e4067577a3
docker-compose.yml
version: '2'
services:
  test:
    image: ubuntu:14.04

And when running the test service and just pressing enter the following happens:

docker-compose run --rm test bash
root@aa30d9f1dbe8:/#
                     root@aa30d9f1dbe8:/#
                                          root@aa30d9f1dbe8:/#

Most helpful comment

It's an engine bug that will be fixed in the next RC (RC3). See https://github.com/moby/moby/pull/33577 for details.

Workaround until then: Use the -T flag.

All 5 comments

It's an engine bug that will be fixed in the next RC (RC3). See https://github.com/moby/moby/pull/33577 for details.

Workaround until then: Use the -T flag.

Another workaround is to docker-compose up and manually docker exec into the container.

This is fixed in 17.06.0-rc4-ce-mac15 on my machine.

Having this issue with docker-compose version 1.21.1, build 5a3f1a3 and Docker version 18.03.1-ce, build 9ee9f40. Doing a reset fixes it. So does passing -T to docker-compose

@torarnv How about Docker alone, without Docker Compose? This issue should have been fixed. If you still observe this, it is probably a regression issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maltefiala picture maltefiala  路  3Comments

dazorni picture dazorni  路  3Comments

DhairyashilBhosale picture DhairyashilBhosale  路  3Comments

squeaky-pl picture squeaky-pl  路  3Comments

leiblix picture leiblix  路  3Comments