Professional Documents
Culture Documents
5 Advanced Docker Commands
5 Advanced Docker Commands
DOCKER COMMANDS
that make you a Ninja
RAGHAV DUA
@raghavdua
inspect
Get detailed information on Docker objects such as
Containers, Images, Volumes and Networks.
It can also reveal potentially sensitive info like secrets
passed to a container
RAGHAV DUA
@raghavdua
exec
Lets you run commands inside a running container.
Use it to gain a shell or spin up new processes inside the
container. Perfect for live troubleshooting and examining
things. Also a potential security risk.
RAGHAV DUA
@raghavdua
attach
Allows you to attach your terminal to a running container,
enabling interactive communication. You can observe logs
& ongoing operations and adjust configurations at runtime.
RAGHAV DUA
@raghavdua
stats
Live-stream resource usage stats of containers.
Instant visibility into CPU, Memory, Network & Disk usage to
monitor container health.
RAGHAV DUA
@raghavdua
top
View running processes inside a container.
RAGHAV DUA
@raghavdua
Follow
for more insights
into
Software Engineering,
DevOps & Reliability!
RAGHAV DUA
@raghavdua