igor-kozhevnikov/cross-docker
最新稳定版本:v1.5.1
Composer 安装命令:
composer require igor-kozhevnikov/cross-docker
包简介
Set of console commands for docker
README 文档
README
Set of console commands for docker.
Install
This package depends on Cross package.
composer require igor-kozhevnikov/cross-docker
Configuration
If your project doesn't have a cross.php config file in the root directory, just run the follow command.
./vendor/bin/cross cross:config
Add data as described below to the cross.php file.
<?php return [ 'plugins' => [ \Cross\Docker\Plugin\Plugin::class => [ 'env_paths' => 'docker/.env', ], ], 'commands' => [ \Cross\Docker\Commands\SSH::class => [ 'container' => 'packager_workspace', ], ], ];
To learn more about the available configurations, see the plugin and commands config files.
Commands
Build containers
./vendor/bin/cross docker:build [options] [--] [<container>]
Arguments:
containerContainer for building
Options:
--no-cacheDon't use cache during build
Config:
optionsApplied options
Down containers
./vendor/bin/cross docker:down
Config:
optionsApplied options
Restart containers
./vendor/bin/cross docker:restart [options]
Options:
-d--downDowning containers instead of stopping
Go into a container
./vendor/bin/cross docker:ssh
./vendor/bin/cross ssh
Config:
containerContainer to enteroptionsApplied optionscommandCommand to executeargumentsApplied arguments for the command
Start containers
./vendor/bin/cross docker:start
./vendor/bin/cross start
Stop containers
./vendor/bin/cross docker:stop
./vendor/bin/cross stop
Config:
optionsApplied options
Up containers
./vendor/bin/cross docker:up [options] [--] [<container>]
Arguments:
containerContainer to up
Options:
--buildBuild and run containers--remove-orphansRun containers with removing orphans--no-detachRun containers in front
Config:
optionsApplied options
License
The Cross for Docker is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-05