Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker host detection and information #1125

Merged
merged 3 commits into from
Feb 16, 2018
Merged

Docker host detection and information #1125

merged 3 commits into from
Feb 16, 2018

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Jan 29, 2018

Detect docker hosts by the docker binary and fetch information from Docker for a plugin.

@tas50 tas50 requested a review from a team January 29, 2018 23:14
@tas50
Copy link
Contributor Author

tas50 commented Jan 29, 2018

Example output of the docker plugin on my Mac:

{
  "version_string": "17.12.0-ce",
  "version": "17.12.0",
  "runtimes": {
    "runc": {
      "path": "docker-runc"
    }
  },
  "root_dir": "/var/lib/docker",
  "containers": {
    "total": 11,
    "running": 0,
    "paused": 0,
    "stopped": 11
  },
  "plugins": {
    "Volume": [
      "local"
    ],
    "Network": [
      "bridge",
      "host",
      "ipvlan",
      "macvlan",
      "null",
      "overlay"
    ],
    "Authorization": null,
    "Log": [
      "awslogs",
      "fluentd",
      "gcplogs",
      "gelf",
      "journald",
      "json-file",
      "logentries",
      "splunk",
      "syslog"
    ]
  },
  "networking": {
    "ipv4_forwarding": true,
    "bridge_nf_iptables": true,
    "bridge_nf_ipv6_iptables": true
  },
  "swarm": {
    "NodeID": "",
    "NodeAddr": "",
    "LocalNodeState": "inactive",
    "ControlAvailable": false,
    "Error": "",
    "RemoteManagers": null
  }
}

Useful information to have and lets us write a docker plugin to collect more information.

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 changed the title WIP: Docker host detection and information Docker host detection and information Feb 15, 2018
@tas50 tas50 force-pushed the docker branch 2 times, most recently from d5363db to 3c217af Compare February 15, 2018 20:01
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 merged commit 3ffe07a into master Feb 16, 2018
@tas50 tas50 deleted the docker branch February 26, 2018 19:57
@lock
Copy link

lock bot commented Jan 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants