Ad Widget

Collapse

Extend Python Environment in Zabbix Docker Container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alan.sears
    Junior Member
    • Mar 2020
    • 2

    #1

    Extend Python Environment in Zabbix Docker Container

    I am working to create a development and testing environment with the Zabbix Docker Repository compose files published at https://www.zabbix.com/container_images. I followed the steps is the accompanying video, and have a working Zabbix 4.4.5 server running in Docker. We run a python script on our production Zabbix server that utilizes several extensions to the standard python environment, for instance simple_salesforce. I need to have the same script execute on our development Zabbix Docker server. I have tried 'docker attach zabbix-docker_zabbix-server_1' to get to a command prompt on the Zabbix server container to attempt a 'pip install simple_salesforce' but the console of the Zabbix server container only displays log messages, and does not give me a command prompt. Is there a way for me to extend the python environment of the Zabbix Server Docker container with simple_salesforce?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    I think you should use exec instead of attach.

    ex.
    Code:
    $ docker exec -it zabbix-docker_zabbix-server_1 /bin/bash

    Comment

    Working...