Added dockerhub instructions
parent
e03f59d0ee
commit
cd225d201f
20
README.md
20
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue