softbricks/docker-wrapper

There is no license information available for the latest version (v1.0.0) of this package.

PHP wrapper for docker CLI

Installs: 2 556

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

pkg:composer/softbricks/docker-wrapper

v1.0.0 2017-10-24 10:42 UTC

This package is not auto-updated.

Last update: 2025-10-26 09:04:16 UTC


README

PHP wrapper class for docker CLI (feature incomplete).

Example

The following example tries to retrieve information about the container my-container.

$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');
    }
}