Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SoftBricks/php-docker-wrapper

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-docker-wrapper

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

About

PHP wrapper class for docker CLI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.