# Docker Octopus

## Why use Docker Octopus

Use Docker Octopus as standalone with each docker octopus product or you can use it together to boost your Docker Swarm Cluster setup. Docker Octopus its a way to working with Docker Swarm as a tool when you did not know how what to do with your Docker Swarm.

The main goal of the project has been to optimize the way auto deployment shut working with the Docker Swarm environments but not exists today. If you use tools like watchtower or swarmpit to auto deployment you will hit the wall if you are storage your private Docker Image on Docker Hub.

Docker Hub have a fair use limit for each account right now on 50.000 pull request for 24 hours, the focus here is to reduce this to very few pull request even if you are running many of the same service with the same images.

![Docker Octopus data flow model](https://3074218335-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYa5sJ-NPI6wrXSWFkY%2F-MZUNdAepaea_bRL8i_J%2F-MZUNw9RnCkC6L8jIsWo%2FDocker%20Octopus%401.25x%20\(1\).png?alt=media\&token=f1b8ed79-4c2b-4f6d-a89d-1bbfedccbdbc)

### How did you get the idea?

The idea its coming based on Docker Swarm experience I got over time. I start using Swarmpit as Web-GUI interface because its have the option auto deployment, I analyze the function and watch the count on my private Docker Hub account so I realized fast its ask for a pull request every single minute its mean 1.440 pull request for every single service there have enabled auto deployment.

The next issue I discovered by using Swarmpit its not multi Docker Swarm Cluster supported and that's mean you need to install and setup it for every single Docker Swarm Cluster environment you got, and are you have the operations roles of many Docker Swarm Clusters you will be vary confused by operate this way.

So I decided  to developing my own agent because so I can understand how Docker Swarm and the Docker Engine API is real working and how to collect data on cross of Docker Swarm Clusters. That's how my [agent](https://docs.pnk.sh/docker-octopus/agent) become a real project, and the Docker Octopus project get start, start as a agent there only can collect the basic data into a MongoDB.

### Why no GUI interface?

Right now I got focus to make a stable platform there can handle Docker Swarm Cluster maintain very easy, so for now I did not have any plans to add a interface for it, not before the platform is stable and can auto deploy updates for services into a Docker Swarm Cluster automatic.

I'm still research witch platform when the time is right, I shut chose to this Web-UI to get best way to get up and running and build a simple interface for every one. When the time is right I will start developing the Web-UI.

### Reduce your pull's with \~95% - Graph summary report

The way Docker Octopus can help you to reduce your pull-request to a Docker Registry server can be huge, in this graph you can see its hitting over 195.000 pull-request every single day, and when the Docker Hub have a fair-use limit on 50.000 then its all most 4 times higher and its waste of pull-request and your system resources.

![Summary graph go from 195.00 to 4.300 pull-request a day - its a save on \~95%](https://3074218335-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYa5sJ-NPI6wrXSWFkY%2F-M_PMvdjfoh7klNNRGl4%2F-M_PcBMSuPvGaM2HZex8%2Fgraph_of_pulls_2021-05.png?alt=media\&token=73841ed1-0194-4025-947b-e3c3f20ac504)

So its will be easy to reduce your pull-request down with \~95% just to change your deployment setup for your Docker Swarm clusters to Docker Octopus.
