Push Docker images to remote hosts

Push Docker images to multiple remote hosts using the included script.

Use the tools/push_images.sh script to push Docker images to multiple remote hosts using SSH. The script takes the name of a container and an image path, and pushes the image to all the entries in a push_targets file.

  1. Create a file in your current working directory named push_targets.

    This file should include every host that you want to push images to, one user@host entry on each line. For example:

    CODE
    ubuntu@myvm1.splunk.com
    ubuntu@myvm2.splunk.com
    ubuntu@myvm3.splunk.com
  2. Run the script with the image path.

    The following example pushes the splunk/splunk-operator image to each host in the targets file:

    CODE
    ./tools/push_images.sh splunk/splunk-operator