10000 GitHub - SimonDevelop/php-docker: Php library for managing docker and its commands.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SimonDevelop/php-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version Minimum PHP Version Github Actions PHP GitHub license FOSSA Status

php-docker

Php library for managing docker and its commands.

composer require simondevelop/php-docker

Example

<?php
// Initiate
require "vendor/autoload.php";
use SimonDevelop\Docker;

$docker = new Docker("mysql:5.7", [
    "3306" => "3306"
], [
    "/my/own/datadir" => "/var/lib/mysql"
]);
$docker->setEnv([
    "MYSQL_ROOT_PASSWORD" => "my-secret-pw"
]);

echo $docker->run();
// docker run -d -v /my/own/datadir:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql:5.7

Check this docs for more.

Go to contribute !

License

FOSSA Status

About

Php library for managing docker and its commands.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0