A handy CheatSheet for TMUX and Docker commands you’ll use every day.
Some useful TMUX instructions
-
List all sessions
1 2tmux ls tmux list-session -
Create a new session with the given name
1tmux new -s <session-name> -
Kill the specified session
1tmux kill-session -t <session-ID>/<session-name> -
Attach to the specified session
1tmux attach -t <session-ID>/<session-name> -
Switch to the specified session
1tmux switch -t <session-ID>/<session-name>
Some useful Docker instructions
-
Show Docker version information
1docker --version -
Display system‑wide information (containers, images, etc.)
1docker info -
Get help for any Docker command
1docker help -
Create and start a new container from the specified image
1docker run [image] -
List currently running containers
1docker ps -
List all containers (including stopped ones)
1docker ps -a -
Start a stopped container
1docker start <container-ID>/<container-name> -
Stop a running container
1docker stop <container-ID>/<container-name> -
Restart a container
1docker restart <container-ID>/<container-name> -
Remove a stopped container
1docker rm <container-ID>/<container-name> -
Force remove running containers
1docker rm -f <container-ID>/<container-name> -
Run a command inside a running container
1docker exec <container-ID>/<container-name> [command] -
View the logs of a container
1docker logs <container-ID>/<container-name>
To Be Continued…