Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ d β€” Docker Stack Power Tool

A fast, minimal command wrapper for Docker Compose stacks. Built for speed, safety, and clean workflows πŸš€

🧭 First-Time Setup 2 steps

Set your Docker workspace location (edit the path if needed).

Change /home/docker after pasting script below in interactive window to wherever you keep your Docker container compose folders are kept .

Step 1

sudo curl -fsSL https://raw.githubusercontent.com/886ppak/docker-d-script/main/d -o /sbin/d && sudo chmod +x /sbin/d && /sbin/d

error will appear but script is working fine script is expecting a compose file in same location for other d commands ❌ No docker-compose file found in /root

Step 2

source ~/.bashrc

if you made an error for your docker home location remove the cd if it appears in the interactive box

sudo curl -fsSL https://raw.githubusercontent.com/886ppak/docker-d-script/main/update-dh -o /sbin/update-dh && sudo chmod +x /sbin/update-dh && /sbin/update-dh

then

source ~/.bashrc

sanity check

alias

βœ… After this, just type:

dh

to jump into your Docker workspace.

πŸ›  Usage Commands

Command (all require d) Alias Description
d dps status πŸ“‹ Show all containers (running + stopped)
d start dup β–Ά Start stack (docker compose up -d)
d stop dc ⏹ Stop stack
d restart dr πŸ”„ Restart stack
d logs [svc] dl πŸ“œ Follow logs of a service
d pull du ⬇ Pull latest images
d sh [--root --user -u USER]
d dn - πŸ§ͺ Dry-run β€” preview what would be deleted
d DN - πŸ’£ Full nuke β€” deletes stack + volumes + folders (requires confirmation)
d uninstall - ⚠ Remove script and revert aliases (safe uninstall)

πŸ“ d sh Examples

d sh            # Root shell (default)
d sh --user     # Container’s default user
d sh --root     # Explicit root shell
d sh -u jellyfin # Specific user
  • Automatically detects the compose file in the current folder
  • Auto-selects a service if multiple are running
  • Bash β†’ sh fallback for lightweight containers (Alpine, Debian, etc.)

βœ… Notes

  • All commands require the d prefix (d dup, d dc, d dn, etc.)
  • Dry-run (d dn) previews deletions β€” nothing happens until full nuke (d DN) is confirmed
  • Full nuke (d DN) requires typing YES before anything is deleted
  • d uninstall safely removes /sbin/d and your dh alias in .bashrc
  • d sh now allows selecting root or user shells without typing service names manually

πŸ“ Copy & Paste

You can safely select all of this block above and paste into your terminal or README β€” commands are fully ready to use.

About

Docker Compose helper script

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages