Sign inSign up

humpbacks/humpback-agent

By humpbacks

•Updated over 1 year ago

humpback remote agent node image, the latest tag is 1.3.2

Image
2

4.2K

humpbacks/humpback-agent repository overview

⁠Checking Docker API Version

API Version: 1.21

Note that different versions of Docker, the version number is different.

Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64
⁠Single Mode startup

DOCKER_CLUSTER_ENABLED=false Abandoning join the cluster and running in a single point.

$ docker run -d -ti --net=host \
    --restart=always \
    --name=humpback-agent \
    -e DOCKER_API_VERSION=v1.21 \
    -e DOCKER_CLUSTER_ENABLED=false \
    -v /var/run/:/var/run/:rw \
    -v /opt/app/humpback-agent/compose_files/:/opt/app/humpback-agent/compose_files/ \
    humpbacks/humpback-agent:latest
⁠Cluster Mode startup
$ docker run -d -ti --net=host \
   --restart=always \
   --name=humpback-agent \
   -e DOCKER_API_VERSION=v1.21 \
   -e DOCKER_AGENT_IPADDR=0.0.0.0 \
   -e DOCKER_CLUSTER_ENABLED=true \
   -e DOCKER_CLUSTER_URIS=etcd://192.168.2.80:2379,192.168.2.81:2379,192.168.2.82:2379 \
   -e DOCKER_CLUSTER_NAME=humpback/center \
   -v /var/run/:/var/run/:rw \
   -v /opt/app/humpback-agent/compose_files/:/opt/app/humpback-agent/compose_files/ \
   humpbacks/humpback-agent:latest
⁠Agent API

more APIs: https://github.com/humpback/humpback-agent/wiki⁠
default port:8500 http://{ipaddr}:8500/v1/ping

{
  "AppVersion": "1.2.4",
  "DockerEndPoint": "unix:///var/run/docker.sock",
  "DockerAPIVersion": "v1.21",
  "DockerAgentIPAddr": "0.0.0.0",
  "DockerClusterEnabled": false,
  "DockerClusterURIs": "etcd://192.168.2.80:2379,192.168.2.81:2379,192.168.2.82:2379",
  "DockerClusterName": "humpback/center",
  "DockerClusterHeartBeat": "8s", #Cluster Mode, Join the cluster heartbeat interval.
  "DockerClusterTTL": "30s",  #Cluster Mode, Heartbeat timeout TTL, 默认: `30s`.
  "DockerClusterPortsRange": "8000-8999",  #Cluster Mode, Create a container to automatically assign the range of ports
  "LogLevel": 3
}
⁠Environment variables

DOCKER_API_VERSION=v1.21
must be consistent with the above version number. DOCKER_AGENT_IPADDR=0.0.0.0
When the container is started, the node in the cluster mode registers with the local network address of the cluster. The default is: 0.0.0.0 randomly selects a valid local address. If the local is a dual network card, you need to select an IP address. DOCKER_CLUSTER_ENABLED=true
If the current agent needs to be scheduled by cluster mode, set the cluster mode to true, otherwise, close the node of cluster scheduling to Single Mode mode. DOCKER_CLUSTER_URIS=etcd://192.168.2.80:2379,192.168.2.81:2379,192.168.2.82:2379
is the previously configured ETCD cluster address information, if it is zookeeper, consul or other found tools, please change the prefix to zk:// or consul://. DOCKER_CLUSTER_NAME=humpback/center
Cluster name, It is consistent with the Humpback Center configuration.

⁠License

Apache-2.0

Tag summary

Content type

Image

Digest

sha256:059e2f3f6…

Size

13 MB

Last updated

over 1 year ago

docker pull humpbacks/humpback-agent