Knowledge Base
Run a PingPlotter Cloud Agent in Docker
Question
Solution
Important!
- Docker must already be installed. For installation steps, please refer to Docker's documentation.
- You must use a Linux host in order to see all of the intermediate hops!
Dockerfile
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
libicu-dev \
software-properties-common \
wget \
--no-install-recommends
# Add Pingman APT repo
RUN echo "deb [trusted=yes] https://packages.pingman.com/apt/ /" >> /etc/apt/sources.list
# Install the agent
RUN apt-get update --allow-insecure-repositories && \
apt-get install -y pingplotter.agent --allow-unauthenticated
ENTRYPOINT ["/opt/pingplotter.agent/PingPlotter.Agent"]
Steps
- Create a new directory for the PingPlotter Agent: mkdir pingplotter-agent && cd pingplotter-agent
- Create the Dockerfile: nano Dockerfile
- Build the image: docker buildx build -t pingplotter-agent --load .
- Log into your account and create a PingPlotter Cloud Agent. On the Deploy Agent step select Already Have PingPlotter Installed? and copy the Auto Deploy Link. (Or right-click on the Agent -->Copy auto deploy link.
- Run the container: docker run -d --name pingplotter-agent pingplotter-agent -c "Auto Deploy Link"
