Ad Widget

Collapse

service zabbix-server status is not available on Docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas Zabbix Guru
    Junior Member
    • Mar 2019
    • 7

    #1

    service zabbix-server status is not available on Docker

    Does anyone know how to add the "service" package when building your own image based on zabbix-server-mysql image? When I /bin/bash to the container I can run several commands. but does anyone know how to start/stop zabbix server? isn't that possible at all on a container? That means the only chance I would have is to start/stop entire container is that correct?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Are you using the official Zabbix Docker image?


    If so, the Zabbix server process is not managed by init or systemd, so the servrice command can not be used. If you want to stop the Zabbix server process, you will stop the container itself. Please check the contents of Dockerfile and docker-entrypoint.sh for details.
    Official Zabbix Dockerfiles. Contribute to zabbix/zabbix-docker development by creating an account on GitHub.

    Comment

    Working...