Docker requirements, installation script examples, and container removal steps

This Orion Platform topic applies only to the following products:

SAMVMAN

Docker is one of the environments supported by the Orion Platform's container monitoring feature.

To monitor Docker containers in the Orion Platform, you'll need:

  • Docker Engine 17.12 or later
  • Compose file 3.5 or later
  • SSH access to the master server
  • Sudo privileges on the master server

Docker installation script

When you add a container service on the Container Services page, the Monitor Container Service wizard generates a script that you can copy to the Windows Clipboard. Connect to the master server via SSH, open a command line, and run the script, which looks something like this:

curl -o docker-compose.yaml #endpoint# 
sudo docker-compose up -d

SolarWinds recommends that you execute script commands in a directory that does not already have a docker-compose.yaml file. Consider creating a new Orion directory on the server where you can run script commands.

The script downloads the docker-compose.yaml file and runs it with superuser privileges.

Remove Orion container data from nodes in Docker

Before you delete a container service in the Orion Web Console, remove Orion containers and images from the node manually with Docker commands.

  1. Connect to the node via SSH.

    Need an SSH client? Try the free SolarWinds® Solar-PuTTY tool.

  2. Get the IDs for the sw_orionaggregator and sw_orionmonitor containers by running:
    sudo docker ps | grep sw_
  3. Remove the sw_orionaggregator and sw_orionmonitor by running the following commands for each ID:
    sudo docker stop [container_id]
    sudo docker rm [container_id]
    
  4. Get a list of images and note the IDs for the docker.dev.local/scope2orion and weaveworks/scope:latest containers.
    sudo docker images
  5. Run the following command for each image ID and container acquired in step 4:
    sudo docker rmi [image_id]

The service status switches to Down on the Container Services page. Now you can delete the container service by selecting its check box and clicking Delete.