Stakkr main controller. Used by the CLI to do all its actions.
Main class that does actions asked in the cli.
console(container: str, user: str, tty: bool)¶
Enter a container. Stakkr will try to guess the right shell.
exec_cmd(container: str, user: str, args: tuple, tty: bool, workdir: str)¶
Run a command from outside to any container. Wrapped into /bin/sh.
Read and validate config from config file
Once started, displays a message with a list of running containers.
get_url(service_url: str, service: str)¶
Build URL to be displayed.
Initializing the project by reading config and setting some properties of the object
start(container: str, pull: bool, recreate: bool, proxy: bool)¶
If not started, start the containers defined in config.
Return a nice table with the list of started containers.
stop(container: str, proxy: bool)¶
If started, stop the containers defined in config. Else throw an error.