Download the PHP package acamposm/docker-engine-api-poller without Composer
On this page you can find all versions of the php package acamposm/docker-engine-api-poller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package docker-engine-api-poller
Docker Poller for Laravel
This package allows Laravel applications to interact with the Docker Engine API.
The Docker Engine API is an HTTP API served by Docker Engine. It is the API the Docker client uses to communicate with the Engine, so everything the Docker client can do can be done with the API.
- Installation
- Requirements
- Usage
- Basic Initialization
- API Resources
- Containers
- Images
- Networks
- Volumes
- Testing
Installation
You can install the package via composer and then publish the assets:
Note: We try to follow SemVer v2.0.0.
Requirements
To use this packet, you must enable first the Docker Engine API, normally the Engine API listens on port 2375, but it is configurable.
Note: In production environments, you must always secure the API with SSL encryption and control who can perform request to this API.
Usage
Basic Initialization
First, create a DockerServer instance with the details of the docker server hosts.
Note: By default, the DockerServer class uses the default port (2375) and the protocol (http) of the Docker Engine API.
Docker Engine API over HTTP
or
Docker Engine API over HTTPS
or
API Resources
Containers
Get Containers List
Get a list of the running containers in the docker host.
Get Container Details
To get the full details of a container...
Get Container Stats
Get the resources used by a single container, then use the class ContainerMetrics to get the usage of a container.
The result will be a json object with the container statistics, ready to save to a database.
Images
Get Images List
To get a list with all images on the docker host.
Get Image Details
To get the full details of an image.
Networks
Get Networks List
Get Network Details
To get the full details of a network in the docker host.
Volumes
Get Volumes List
Get a list of volumes in the docker host.
Get Volume Details
Get a list of volumes in the docker host.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Thank you for considering contributing to the improvement of the package. Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security related issues, please send an e-mail to Angel Campos via [email protected] instead of using the issue tracker. All security vulnerabilities will be promptly addressed.
Credits
License
The package Ping is open-source package and is licensed under The MIT License (MIT). Please see License File for more information.
All versions of docker-engine-api-poller with dependencies
ext-json Version *