Terminal rendering problem when running weechat in a container

I would like to run weechat in a docker container on my desktop. Unfortunately, I’m getting a display issue (rendering glitches?) when running weechat inside a container. I do not have this problem if I install and run weechat directly on the host.

More info about the issue:

Docker version: 1.8.3 (running on a Ubuntu 15.04 host)

I use Jessie Frazelle’s Dockerfile to build my image

Complete command used to run the image:

docker run -it -v /etc/localtime:/etc/localtime -v $HOME/.weechat:/home/user/.weechat --rm --name weechat weechat

Screenshot of weechat running inside a container with the graphical glitches:

https://imgur.com/QSzHF5B

Here a few things that I already tried without success:

-Setting different values for TERM in the Dockerfile (like screen-256color, xterm, etc).

-Using a Ubuntu 15.04 layer instead of Ubuntu 14.04 to try a most recent version of weechat.

-Running the image with the option -e TERM=$TERM

I have spend a few hours googling and troubleshooting this and I’m really out of ideas.

I hope someone here will be able to help me with this issue.

Thank you!