# Commands

### Image

1. List all docker images

```bash
$ docker images
```

2\. List only those images who has `none` substring in information

```bash
$ docker images | grep none
```

3\. Print ID (3rd field) of the docker images who has `none` substring in their info.

```bash
$ docker images | grep none | awk '{print $3}'
```

4\. Remove the images who has `none` substring in their information.

```bash
$ docker rmi -f (docker images | grep none | awk '{print $3}')
```

5\. Free disk taken by docker images, volume etc.<br>

```bash
docker system prune --all
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hossainemruz.gitbook.io/notes/docker/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
