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

  • Connect nginx on host with wsgi unicorn inside docker container
  • How to enter bash of an ubuntu docker container?
  • Docker-compose, deploy war to Tomcat, run oracle service
  • How do I limit a volume's size using the API?
  • Docker Default Operating System
  • Permission Issue in Docker container for Symfony2
  • 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.

  • Docker container won't access MySQL on host machine
  • Allow docker container to connect to a local/host postgres database
  • Tomcat's Spring app properties with docker container linking
  • Nginx proxy pass configuration docker
  • docker build running out of memory, but plenty of memory seems to be available
  • Deploy docker-compose to swarm
  • 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.