2017 © Pedro Peláez
 

library docker-wrapper

PHP wrapper for docker CLI

image

softbricks/docker-wrapper

PHP wrapper for docker CLI

  • Tuesday, October 24, 2017
  • by SMenigat
  • Repository
  • 5 Watchers
  • 0 Stars
  • 956 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

php-docker-wrapper

PHP wrapper class for docker CLI (feature incomplete)., (*1)

Example

The following example tries to retrieve information about the container my-container., (*2)

$docker = new Docker();

if ($docker->isInstalled()) {

    if ($docker->isContainerExisting('my-container')) {

        if (!$docker->isContainerRunning('my-container')) {
            $docker->start('my-container');
        }

        $containerInfo = $docker->getContainerInfo('my-container');

        // .. do something with it

        $docker->stop('my-container');
    }
}

The Versions

24/10 2017

dev-master

9999999-dev

PHP wrapper for docker CLI

  Sources   Download

by Samuel Menigat

24/10 2017

v1.0.0

1.0.0.0

PHP wrapper for docker CLI

  Sources   Download

by Samuel Menigat