Follow the steps below, to deploy Log Agent,
-
If Docker Swarm is not active, enable it by issuing the host shell command:
docker swarm init
-
Issue the host shell command: cd $CONNECT/components/logAgent/swarm
-
To deploy the Agent, issue the host shell command:
docker stack deploy -c logAgent-stack.yaml --with-registry-auth connectLogAgent
-
Verify that the service is provisioned by issuing the host shell command:
docker service ls
When the service has provisioned correctly, the count under ‘REPLICAS’ must read 1/1.