pub async fn start(
exe: impl AsRef<str>,
file: Option<PathBuf>,
node_config_path: impl Into<PathBuf>,
docker_opts: DockerOptions,
opts: StartOpts,
command: StartSubcommand,
) -> Result<(), Error>
Expand description
Starts the local node by running the given docker-compose file.
§Arguments
exe
: Thedocker-compose
executable to run.file
: Thedocker-compose.yml
file to launch.node_config_path
: The path to the node config file to potentially override.docker_opts
: Configuration for connecting to the local Docker daemon. SeeDockerOptions
for more information.opts
: Miscellaneous configuration for starting the images. SeeStartOpts
for more information.command
: TheStartSubcommand
that carries additional information, including which of the node types to launch.
§Returns
Nothing, but does change the local Docker daemon to load and then run the given files.
§Errors
This function errors if we failed to run the docker-compose
command or if we failed to assert that the given command matches the node kind of the node.yml
file on disk.