docker-run-agent.sh 256 B

123456789101112
  1. #!/bin/bash
  2. docker stop ops-agent
  3. docker rm ops-agent
  4. docker run -d \
  5. --name ops-agent \
  6. --network=host \
  7. -e WS_URL=ws://127.0.0.1:4030 \
  8. - /etc/machine-id:/etc/machine-id:ro \
  9. -v /var/run/docker.sock:/var/run/docker.sock \
  10. ops-agent:12345678