Notes
  • 👀About me
  • â„šī¸Good Reads
  • 🌐Web
    • Web Pentesting Checklist
    • Insecure Deserialization
    • Blind XPath Injection
    • GraphQL
    • Reverse Shells
      • IIS
    • Content-Security-Policy
      • XSS (Static Nonce in CSP)
    • LLM (Large Language Models)
  • 📘Windows API
    • C# - P/Invoke
  • ☕Miscellaneous Topics
    • Phishing with Gophish
    • Pentest Diaries
      • SQL Queries via Grafana
      • LDAP Pass Back Attack
      • Misconfigured File Upload to RCE
  • 🧃Hack The Box
    • Intelligence
    • Seal
    • Under Construction
    • Previse
    • Return
    • Sauna
    • Nest
  • 📕TryHackMe
    • Wordpress CVE-2021-29447
    • Attacktiv
    • Fortress
    • internal
  • đŸ› ī¸Cheatsheet
    • Anti-Forensic Techniques
    • JSON - jq
    • Docker
    • Hidden Secrets
    • Database Exploitation
      • PostgreSQL
        • Blind SQLi script
      • SQL Server
    • C Sharp
    • Reversing
      • Windows
    • SSH
    • Python
      • Miscellaneous Scripts
        • Credential Bruteforcing a CLI service
    • Privilege Escalation
      • Windows
    • socat
    • OSINT
      • Shodan
    • Installation
Powered by GitBook
On this page

Was this helpful?

  1. Cheatsheet

Docker

Start an app

docker-compose up -d
# -d, --detach               Detached mode: Run containers in the background, print new container names.

Stop an app

docker-compose down

List running containers

docker ps --no-trunc

Run commands inside a container

docker exec -it <container-id> bash

# Retrieve container id from command 'docker ps'

Search for a running container with specific name

docker ps -f 'name=<string-in-container-name>'

# Only output the container id
docker ps -f 'name=<string-in-container-name>' --quiet
Objective
Command

Start an app

Stop an app

List running containers

Run commands inside a container

Search for a running container with specific name

PreviousJSON - jqNextHidden Secrets

Last updated 1 year ago

Was this helpful?

đŸ› ī¸
docker-compose up -d
# -d, --detach               Detached mode: Run containers in the background, print new container names.
docker-compose down
docker ps --no-trunc
docker exec -it <container-id> bash

# Retrieve container id from command 'docker ps'
docker ps -f 'name=<string-in-container-name>'

# Only output the container id
docker ps -f 'name=<string-in-container-name>' --quiet