0

Struggling with GNU Screen inside docker environment.

Near all utils are working with glitches. Top, mc or nano can show this kind of problem:

https://i.stack.imgur.com/RBuG8.png

Lines are shifted and destructed. Is it possible to overcome?

I'm using Ubuntu 14.04 LTS as a host OS and same Ubuntu 14.04 as a container image. Running docker 1.8.1 and screen from default package.

How to reproduce:

# Prepare container with ubuntu

sudo docker pull ubuntu
sudo docker run -it ubuntu /bin/bash

# Installing GNU Screen in running container

apt-get update
apt-get install screen

# Entering screen

screen

# How to see glitches:
# 1. Inside first window launch top

top

# 2. Create new window with Ctrl-a c
# 3. Switch to previous window with Ctrl-a a
# Glitches apper on the screen as in provided screenshot

This is the screen of mc with glitches:

https://i.stack.imgur.com/NaerV.png

How to reproduce:

# Install mc in container

apt-get install mc

# Run screen if its not running

screen

# Enter mc

mc

# Go down the list with down-arrow key
# Glitches apper

How to reproduce bugs in nano:

# Install nano and wget

apt-get nano wget

# Download and open file in nano

cd
wget -O docker.html 'https://en.wikipedia.org/wiki/Docker_(software)'
nano docker.html

# Navigate  in file using only arrow keys and you will be surprised
# how text become unreadable

0 Answers0