copyToContainer function
Implementation
Future<void> copyToContainer(
String name,
String localPath,
String remotePath,
) async {
final result = await Process.run('docker', [
'cp',
localPath,
'$name:$remotePath',
]);
if (result.exitCode != 0) {
throw Exception(
'Failed to copy $localPath to $name:$remotePath: ${result.stderr}',
);
}
}