Skip to content

Commit

Permalink
run the tool in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Wang committed Jun 26, 2020
1 parent a0be753 commit 0724b02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ You can read more about this on my blog [Here](https://samaritan.ai/blog/reversi

### How to run it

This tool has been pushed to docker image `alpine/dfimage`, the easiest way is to run the tool in docker container:
The easiest way is to run the tool in docker container:

```
alias dfimage="docker run -v /var/run/docker.sock:/var/run/docker.sock --rm alpine/dfimage"
docker build -t dfimage .
alias dfimage="docker run -v /var/run/docker.sock:/var/run/docker.sock --rm dfimage"
dfimage -sV=1.36 nginx:latest
```

This tool will pull docker image automatically. Parameter `-sV=1.36` is not always required.
This tool will pull target docker image automatically. Parameter `-sV=1.36` is not always required.

### How to build it
Git clone the project into your $GOPATH/src directory and perform the following command
Expand Down

0 comments on commit 0724b02

Please sign in to comment.