docker_process 1.1.2
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();
}
1.1.2 #
network
andhostname
setting in pre-configured containers.
1.1.1 #
- Helper method for running the CockroachDB container.
1.1.0 #
- Helper method for running the
postgres
container.
1.0.0 #
- Start and stop docker container (like a process).
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();
}
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
docker_process: ^1.1.2
2. Install it
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter pub get
Alternatively, your editor might support pub get
or flutter pub get
.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:docker_process/docker_process.dart';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
0
|
Health:
Code health derived from static analysis.
[more]
|
100
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100
|
Overall:
Weighted score of the above.
[more]
|
50
|
Learn more about scoring.
We analyzed this package on Dec 7, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
Platforms
Detected platforms: Flutter, other
Primary library:
package:docker_process/docker_process.dart
with components:io
.