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

  • npm install error inside docker container
  • Why is my docker machine not working under OSX?
  • Deploying multicontainer docker environment (flask & nginx) with EBS
  • Ansible prompt_vars error: GetPassWarning: Cannot control echo on the terminal
  • Capture output from attached docker container
  • How to attach visual studio 2015 debugger to previously deployed asp.net core 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:
        imlib_context_free();
        With the parameter:
        context
        being NULL. Please fix your program.
    

  • In docker container how to run another container command?
  • How to add tags to docker images made using autobuild
  • Sharing directories in a Docker container both with a Dockerfile and after the container is running
  • Sending docker logs to AWS CloudWatch via Terraform
  • How to set docker container time in Docker for Windows
  • Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  • 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.