You are on page 1of 7

5 ADVANCED

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.

Multiple team members can attach to a container


simultaneously, allowing powerful collaboration.

RAGHAV DUA
@raghavdua
stats
Live-stream resource usage stats of containers.
Instant visibility into CPU, Memory, Network & Disk usage to
monitor container health.

Use historical data for better capacity planning & scaling of


your application containers.

RAGHAV DUA
@raghavdua
top
View running processes inside a container.

Analyze resource consumption and figure out which


processes are consuming the lion's share.

RAGHAV DUA
@raghavdua
Follow
for more insights
into
Software Engineering,
DevOps & Reliability!

RAGHAV DUA
@raghavdua

You might also like