Easily start and stop docker compose projects with captain, arrrrr.
Binaries can be manually downloaded from GitHub releases: https://github.com/jenssegers/captain/releases
curl -L https://github.com/jenssegers/captain/releases/download/0.3.3/captain-osx > /usr/local/bin/captain && chmod +x /usr/local/bin/captain
curl -L https://github.com/jenssegers/captain/releases/download/0.3.3/captain-linux > /usr/local/bin/captain && chmod +x /usr/local/bin/captain
Download captain.exe
via https://github.com/jenssegers/captain/releases/download/0.3.3/captain.exe
Captain searches for docker-compose projects in your $HOME
folder and allows you to start and stop those projects by matching the project's directory name.
NAME:
captain - Start and stop docker compose projects
USAGE:
captain [global options] command [command options] [arguments...]
VERSION:
0.7.0
COMMANDS:
start, up, sail Start a docker compose project or container(s)
stop, down, dock Stop a docker compose project or container(s)
restart Restart a docker compose project or container(s)
build Build a docker compose project or container(s)
logs View container output from a docker compose project or container(s)
abandon Stop all running docker containers
pull Pull a docker compose project
exec Execute a command in a service in a docker compose project
list, ls List available docker compose projects
run Executing command as a new service container
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
You can tweak some behaviour through some environmental variables:
- CAPTAIN_ROOT: the starting directory from where the docker-compose are searched (default: home dir of the user)
- CAPTAIN_DEPTH: the number of subdirectory where to search the docker-compose.yml files (default: 5)