Essential syntax for running, searching, and mastering both worlds.
| Command | Description | Example |
|---|---|---|
docker ps |
List running containers | docker ps |
docker images |
Show all local images | docker images |
docker pull <image> |
Download image from Docker Hub | docker pull ubuntu |
docker run <image> |
Create and run a container | docker run -d nginx |
docker exec -it <id> bash |
Access container shell | docker exec -it web bash |
docker stop <id> |
Stop running container | docker stop web |
docker start <id> |
Start a stopped container | docker start web |
docker rm <id> |
Remove a container | docker rm web |
docker rmi <image> |
Delete an image | docker rmi nginx |
docker build -t <name> . |
Build from Dockerfile | docker build -t myapp . |
docker logs <id> |
Show logs | docker logs -f web |
docker system prune -a |
Clean all unused data | docker system prune -a |
docker-compose up -d |
Start multiple services | docker-compose up -d |
| Operator | Function / What it Does | Example |
|---|---|---|
site: |
Search within a specific site or domain | site:github.com password |
filetype: |
Find specific file types | filetype:pdf penetration testing |
intitle: |
Search for a word in the page title | intitle:"login page" |
allintitle: |
Require multiple words in title | allintitle:admin login |
inurl: |
Look for words in URL | inurl:admin |
allinurl: |
Require multiple words in URL | allinurl:login admin |
intext: |
Search inside page body text | intext:"confidential data" |
allintext: |
Require multiple words in page text | allintext:password username |
cache: |
View cached version of a site | cache:example.com |
related: |
Find related websites | related:bbc.com |
link: |
Find pages linking to a domain | link:example.com |
OR |
Search for one OR another term | hacking OR pentesting |
AND |
Require both terms | hacking AND "bug bounty" |
- |
Exclude a term from results | hacking -game |
"" |
Exact match search | "ethical hacking" |
* |
Wildcard for any word | "cyber * course" |
.. |
Search within number range | 2019..2025 cyber trends |