docker_process 1.3.2 docker_process: ^1.3.2 copied to clipboard
Access wrapper to interact with a docker container like a process.
Access wrapper to interact with a docker container like a process.
Example #
import 'package:docker_process/docker_process.dart';
Future main() async {
final dp = await DockerProcess.start(
image: 'image-name',
name: 'running-name',
readySignal: (line) => line.contains('Done.'),
);
final pr = await dp.exec(<String>['ls', '-l']);
print(pr.stdout);
await dp.stop();
}