Skip to content

Commit a3d3c55

Browse files
committed
updated instructions for Docker
1 parent 98cace1 commit a3d3c55

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Docker.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ Run `duplo --help` on the command line to see the detailed options.
2323
### Passing files using `stdin`
2424

2525
```bash
26-
# unix
27-
> find . \( -iname "*.cpp" -or -iname "*.h" \) | docker run --rm -i -w /src -v $(pwd):/src duplo - out.txt
28-
29-
# windows
30-
> Get-ChildItem -Include "*.cpp", "*.h" -Recurse | % { $_.FullName } | docker run --rm -i -w /src -v $(pwd):/src duplo - out.txt
26+
# Docker on unix
27+
> find . -type f \( -iname "*.cpp" -or -iname "*.h" \) | docker run --rm -i -w /src -v $(pwd):/src dlidstrom/duplo - out.txt
3128
```
3229

3330
`duplo` will write the duplicated blocks into `out.txt`.
@@ -37,15 +34,13 @@ Run `duplo --help` on the command line to see the detailed options.
3734
`duplo` can analyze files specified in a separate file:
3835

3936
```bash
40-
# unix
37+
# Docker on unix
4138
> find . -type f \( -iname "*.cpp" -o -iname "*.h" \) > files.lst
42-
> docker run dlidstrom/duplo files.lst out.txt
43-
44-
# windows
45-
> Get-ChildItem -Include "*.cpp", "*.h" -Recurse | % { $_.FullName } | Out-File -encoding ascii files.lst
46-
> docker run dlidstrom/duplo.exe files.lst out.txt
39+
> docker run --rm -i -w /src -v $(pwd):/src dlidstrom/duplo files.lst out.txt
4740
```
4841

42+
Again, `duplo` will write the duplicated blocks into `out.txt`.
43+
4944
## Feedback and Bug Reporting
5045

5146
Please open a GitHub issue to discuss feedback,

0 commit comments

Comments
 (0)