Ad Widget

Collapse

Zabbix Agent 2 container problem - container starting with network disabled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Singularity
    Member
    • Aug 2020
    • 81

    #1

    Zabbix Agent 2 container problem - container starting with network disabled

    System OS version is Amazon linux 2
    If I start a docker conntainer of zabbix agent 2, it is starting with NetworkDisabled: true
    Because there is not networking, container mapping fails.
    I am new to docker and using the following command to create docker container

    docker run --name zabbix-agent2 -p 10050:10050 -v "/var/run/docker.sock:/var/run/docker.sock" -e ZBX_HOSTNAME="XXXXXX" -e ZBX_SERVER_HOST="XXX.XX.X.XXX" --privileged -e ZBX_TIMEOUT=15 -e ZBX_DEBUGLEVEL=3 -d zabbix/zabbix-agent2:alpine-5.0.4

    "Entrypoint": [
    "/sbin/tini",
    "--",
    "/usr/bin/docker-entrypoint.sh"
    ],
    "NetworkDisabled": true,
    "OnBuild": null,
  • AVP.Riga
    Member
    • Oct 2020
    • 59

    #2
    Good day,

    Maybe you should to add to the docker run command additional parameter like NetworkDisabled:false ?

    Comment

    • Singularity
      Member
      • Aug 2020
      • 81

      #3
      Thanks for the help.
      For some reason container was not being attached to any network.
      I did ifconfig and found no ethernet or nothing was attached to the container.

      Added --network=host while running docker to create container solved the problem. Maybe the team managing the infrastructure has placed restrictions or something.
      Will figure out more and will update.

      Thanks again.

      Comment

      • AVP.Riga
        Member
        • Oct 2020
        • 59

        #4
        Good morning,

        You're welcome!

        Comment

        Working...