can't execute conky on docker

I try to execute conky on my container (docker) for monitoring it with ssh tunnel.
If I try to execute conky on my admin server it’s okay but on my container I can’t !

pc –> admin server –> container

  • Unable to get Maven version from /usr/share/maven/bin/mvn Could not find system variable
  • docker-compose stop not working after docker-compose -p <name> up
  • Docker-compose Kubernetes ENV properties interoperability
  • Missing files after docker commit
  • Adding custom folder to Docker using sbt-native-packager in Play JPA project
  • Why do I get an error when I want to run cv2.imshow within docker container
  • I’ve installed libimlib2-dev but I get again this error:

    Conky: can't open display: 
    ***** Imlib2 Developer Warning ***** :
        This program is calling the Imlib call:
        With the parameter:
        being NULL. Please fix your program.

  • Uninstall weave docker
  • How to properly store and share docker host access?
  • docker-machine create node without tls verification
  • docker container: add symlink to /Users/www/[project] in /var/www to access and serve local files
  • Docker images on different docker versions
  • Docker restore volume of removed container?
  • One Solution collect form web for “can't execute conky on docker”

    Please check if SSH X forwardings is set up correctly by running some classic X clients like xeyes or xclock within your container. If they run with no problem but only Conky fails, then that might be a bug of Conky and you might need to contact its developers.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.