在docker环境中使用GNU Screen挣扎。
所有工具附近正在处理故障。 Top,mc或nano可以显示这种问题:
http://i.stack.imgur.com/RBuG8.png
线路被移动和破坏。是否有可能克服?
我使用Ubuntu 14.04 LTS作为主机操作系统,使用相同的Ubuntu 14.04作为容器映像。运行docker 1.8.1和默认包中的屏幕。
如何重现:
# 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
这是带有毛刺的mc屏幕:
http://i.stack.imgur.com/NaerV.png
如何重现:
# 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
如何在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