Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

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 = newDocker();
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

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages