export async function runCustomCommandInDocker()

in src/utils/dockerUtils.ts [58:73]


export async function runCustomCommandInDocker(cmd: string, containerName: string): Promise<boolean> {
    try {
        if (!await pullLatestImage(containerName)) {
            return false;
        }
        await executeCommand(
            "docker",
            cmd.split(" "),
            { shell: true },
        );
        return true;
    } catch (error) {
        promptForOpenOutputChannel("Failed to run the custom command in Docker. Please open the output channel for more details.", DialogType.error);
        return false;
    }
}