Added dockerhub instructions

master
Ice3man 2019-12-06 13:30:34 +05:30 committed by GitHub
parent e03f59d0ee
commit cd225d201f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -85,23 +85,31 @@ go get -u -v github.com/projectdiscovery/subfinder/cmd/subfinder
``` ```
## Running in a Docker Container ## Running in a Docker Container
Git clone the repo, then build and run subfinder in a container with the following commands You can use the official dockerhub image at [subfinder](https://hub.docker.com/r/ice3man/subfinder). Simply run -
```bash
> docker pull ice3man/subfinder
```
The above command will pull the latest tagged release from the dockerhub repository.
If you want to build the container yourself manually, git clone the repo, then build and run the following commands
- Clone the repo using `git clone https://github.com/projectdiscovery/subfinder.git` - Clone the repo using `git clone https://github.com/projectdiscovery/subfinder.git`
- Build your docker container - Build your docker container
```bash ```bash
docker build -t subfinder . docker build -t ice3man/subfinder .
``` ```
- After building the container, run the following. - After building the container using either way, run the following -
```bash ```bash
docker run -it subfinder docker run -it ice3man/subfinder
``` ```
> The above command is the same as running `-h` > The above command is the same as running `-h`
For example, this runs the tool against uber.com and output the results to your host file system: For example, this runs the tool against uber.com and output the results to your host file system:
```bash ```bash
docker run -v $HOME/.config/subfinder:/root/.config/subfinder -it subfinder -d uber.com > uber.com.txt docker run -v $HOME/.config/subfinder:/root/.config/subfinder -it ice3man/subfinder -d uber.com > uber.com.txt
``` ```
## Post Installation Instructions ## Post Installation Instructions
@ -154,7 +162,7 @@ If you are using docker, you need to first create your directory structure holdi
After that, you can pass it as a volume using the following sample command. After that, you can pass it as a volume using the following sample command.
```bash ```bash
> docker run -v $HOME/.config/subfinder:/root/.config/subfinder -it subfinder -d freelancer.com > docker run -v $HOME/.config/subfinder:/root/.config/subfinder -it ice3man/subfinder -d freelancer.com
``` ```
# Running Subfinder # Running Subfinder