8000 Docker commandline utility does not honour the TERM environment variable · Issue #26911 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docker commandline utility does not honour the TERM environment variable #26911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lokedhs opened this issue Sep 26, 2016 · 1 comment
Closed
Labels
area/cli kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. version/1.12

Comments

@lokedhs
Copy link
lokedhs commented Sep 26, 2016

Description

When running the docker command (for example docker push), the tool sometimes uses various terminal features such as colours. These seems to be written to the terminal as raw vt102 (or "ANSI" codes) sequences rather than using the terminfo library.

This results in garbage output on terminals which do not support vt102.

Steps to reproduce the issue:

One common terminal that does not support these codes is the shell mode in Emacs, so it's a good place to reproduce the issue.

  1. Start Emacs
  2. Run M-x shell
  3. Run docker push

You will now get a long list of lines that looks like this:

�[0B
�[0B
�[0B
�[0B

Output of docker version:

Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.7
 Git commit:   23cf638
 Built:        Fri Aug 19 02:03:02 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.7
 Git commit:   23cf638
 Built:        Fri Aug 19 02:03:02 2016
 OS/Arch:      linux/amd64

Output of docker info:

Containers: 14
 Running: 0
 Paused: 0
 Stopped: 14
Images: 135
Server Version: 1.12.1
Storage Driver: devicemapper
 Pool Name: docker-8:17-10115003-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 8.874 GB
 Data Space Total: 107.4 GB
 Data Space Available: 73.41 GB
 Metadata Space Used: 17.06 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.13 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /src/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /src/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.134 (2016-09-07)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host null bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.7.2-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.62 GiB
Name: em-desktop
ID: NBH7:XRAW:OAKJ:FXX5:CPTF:HPVX:A3JC:SBC5:5PDN:SAZV:S62V:YRKZ
Docker Root Dir: /src/docker
Debug Mode (client): false
Debug Mode (server): false
Username: lokedhs
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8
@thaJeztah
Copy link
Member

The docker push command recently had a --quiet option merged, which may help with this; docker/cli#2197

Possibly other improvements have been made as well since, but haven't tested your setup. Given that this is something related to the CLI (which now is in a separate repository), I'm closing this one, but if this is still a problem, feel free to open a new ticket in that issue tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. version/1.12
Projects
None yet
Development

No branches or pull requests

3 participants
0