You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/docker.rs
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
+
usecrate::core::Port;
1
2
usecrate::{Container,Image};
2
-
use std::{collections::HashMap, io::Read};
3
+
use std::{collections::HashMap,fmt,io::Read};
3
4
4
5
/// Defines the minimum API required for interacting with the Docker daemon.
5
6
pubtraitDocker
@@ -18,10 +19,12 @@ where
18
19
/// Container run command arguments.
19
20
/// `name` - run image instance with the given name (should be explicitly set to be seen by other containers created in the same docker network).
20
21
/// `network` - run image instance on the given network.
22
+
/// `ports` - run image instance with the given ports mapping (if explicit mappings is not defined, all image ports will be automatically exposed and mapped on random host ports).
0 commit comments