Skip to content

Commit 833811a

Browse files
committed
order of filters
1 parent 21fa14c commit 833811a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ First you should to have Docker installed locally; then you should run library t
1010

1111
To fetch containers, provide you with methods to fetch multiple containers, the most primitive and unadapted part is the filters that should be provided as a string, anyways you can check the docs [filters](https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerList).
1212

13-
What are those arguments in the function? [Check Docker Engine API documentation](https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerList)
14-
1513
```rust
1614
fn get_containers(&mut self, all: bool, limit: i32, size: bool, filters: String) -> Result<Vec<Container>, Box<dyn std::error::Error + Send + Sync>>
1715
```
1816

17+
What are those arguments in the function? [Check Docker Engine API documentation](https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerList)
18+
19+
1920
```rust
2021
let mut client = crate::client::Client::new("/var/run/docker.sock".to_string());
21-
let containers = match client.get_containers(true, 0, false, "".to_string()) {
22-
Ok(containers) => containers,
23-
Err(e) => panic!("Error: {}", e)
24-
};
22+
let containers = match client.get_containers(true, 0, false, "".to_string()) {
23+
Ok(containers) => containers,
24+
Err(e) => panic!("Error: {}", e)
25+
};
2526
```
2627

2728
### Create New Container

0 commit comments

Comments
 (0)