error while loading shared libraries: libtinfo.so.6 : two behaviors for same docker image
There is Docker's known issue #37531

To fix dependencies, you might try:


Either upgrade Docker to 17.02


curl -sSL https://get.docker.com/ | sudo bash



or install lib inside of container.
Since your container based on Centos (FROM centos), so try yum install


rpm -ql libXtst-devel-1.2.2-2.1.el6.x86_64