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
[](https://microbadger.com/images/fmantuano/spamscope-mail-parser"Get your own image badge on microbadger.com")
This Dockerfile represents a Docker image that encapsulates mail-parser. The [official image](https://hub.docker.com/r/fmantuano/spamscope-mail-parser/) is on Docker Hub.
8
+
This Dockerfile represents a Docker image that encapsulates `mail-parser`. The [official image](https://hub.docker.com/r/fmantuano/spamscope-mail-parser/) is on Docker Hub.
9
9
10
10
To run this image after installing Docker, use a command like this:
11
11
12
-
```
12
+
```shell
13
13
sudo docker run -i -t --rm -v ~/mails:/mails fmantuano/spamscope-mail-parser
14
14
```
15
15
16
-
This command runs mail-parser help as default, but you can use all others options.
16
+
This command runs `mail-parser` help as default, but you can use all others options.
17
17
18
18
To share the "mails" directory between your host and the container, create a "mails" directory on your host.
19
19
20
20
There also is an example of `docker-compose`
21
21
22
22
From the `docker-compose.yml` directory, run:
23
23
24
-
```
24
+
```shell
25
25
$ sudo docker-compose up
26
26
```
27
27
28
-
The provided ```docker-compose.yml``` file is configured to:
28
+
The provided `docker-compose.yml` file is configured to:
29
29
30
30
- Mount your host's `~/mails/` folder from your source tree inside the container at `/mails/` (read-only).
31
31
- A command line test example.
32
32
33
-
See the ```docker-compose.yml``` to view and tweak the launch parameters.
33
+
See the `docker-compose.yml` to view and tweak the launch parameters.
0 commit comments