50 Most-Used Docker Commands

🐳 50 Most-Used Docker Commands with Interactive Emulator

Docker helps you build, share, and run applications in containers. This WordPress-ready guide combines a practical command table, an emulator, guided challenges, a visual canvas, and Dockerfile + Docker Compose practice without connecting to a real Docker daemon.

Learning note: emulator output is simulated for training. Real output can vary by Docker Engine version, operating system, image tags, local resources, Docker Desktop settings, registry permissions, and compose.yaml content.

🚀 Responsive Docker Emulator

Type a command, choose a suggestion, or click “Use in Emulator” from the table. The emulator shows simulated output, guided feedback, and visual movement across images, containers, volumes, networks, Dockerfile, and Compose services.

Challenge: run docker version to start your Docker session.
DOCKER WORKSPACE
RESOURCE SCOPE 0
docker-runbook.md0/13

Docker CLI

FREE challenges are available now. LITE, PRO, and PRO Plus will be available soon with more guided labs and deeper scoring.

Expected runbook commandsdocker version
Run the next command to receive guided feedback.
Run the next command to receive guided feedback.
Dockerfile used in this challenge
This challenge focuses on Docker CLI operations. Dockerfile and Compose examples appear in the last three FREE challenges.
compose.yaml used in this challenge
compose.yaml: This challenge focuses on Docker CLI operations. Dockerfile and Compose examples appear in the last three FREE challenges.
How Docker Compose uses it: This challenge focuses on Docker CLI operations. Dockerfile and Compose examples appear in the last three FREE challenges.
Docker Visual CanvasNo changes yet: run a command to move simulated Docker resources.
What is happening?Run a Docker command to see the emulator explain how images, containers, volumes, networks, Dockerfile, and Compose change.
WORKSPACE OUTPUTwaiting
$ Waiting for a Docker command...
Run a command to see simulated Docker output here.
$ Docker Emulator Ready
Tip: choose a command from the table and click "Use in Emulator".

On small screens, the table automatically becomes cards so content is not cut off.

#Command / ParameterDescriptionExampleActions
1docker versionShow Docker client and server version information.docker version
2docker infoDisplay system-wide Docker information.docker info
3docker loginAuthenticate to a container registry.docker login
4docker logoutLog out from a container registry.docker logout
5docker searchSearch Docker Hub for images.docker search nginx
6docker pullDownload an image from a registry.docker pull nginx:latest
7docker imagesList local images.docker images
8docker image inspectInspect image metadata.docker image inspect nginx:latest
9docker image historyShow the layer history of an image.docker image history nginx:latest
10docker tagCreate a new tag for an image.docker tag nginx:latest local-nginx:v1
11docker buildBuild an image from a Dockerfile.docker build -t demo-app:1.0 .
12docker build --no-cacheBuild an image without using cache.docker build --no-cache -t demo-app:clean .
13docker runCreate and run a container from an image.docker run hello-world
14docker run -dRun a container in detached mode.docker run -d --name web -p 8080:80 nginx:latest
15docker psList running containers.docker ps
16docker ps -aList all containers, including stopped ones.docker ps -a
17docker logsShow container logs.docker logs web
18docker logs -fFollow container logs in real time.docker logs -f web
19docker execRun a command inside a running container.docker exec -it web sh
20docker stopStop a running container.docker stop web
21docker startStart a stopped container.docker start web
22docker restartRestart a container.docker restart web
23docker rmRemove a stopped container.docker rm web
24docker rmiRemove a local image.docker rmi local-nginx:v1
25docker container pruneRemove stopped containers.docker container prune -f
26docker image prune -aRemove unused images.docker image prune -a -f
27docker volume createCreate a named volume.docker volume create app-data
28docker volume lsList Docker volumes.docker volume ls
29docker volume inspectInspect a volume.docker volume inspect app-data
30docker volume rmRemove a Docker volume.docker volume rm app-data
31docker network createCreate a Docker network.docker network create app-net
32docker network lsList Docker networks.docker network ls
33docker network inspectInspect a Docker network.docker network inspect app-net
34docker network connectConnect a container to a network.docker network connect app-net web
35docker network rmRemove a Docker network.docker network rm app-net
36docker cpCopy files between host and container.docker cp index.html web:/usr/share/nginx/html/index.html
37docker statsShow live resource usage statistics.docker stats --no-stream
38docker topDisplay running processes inside a container.docker top web
39docker inspectReturn low-level Docker object information.docker inspect web
40docker eventsMonitor Docker daemon events.docker events --since 10m
41docker compose versionShow Docker Compose version.docker compose version
42docker compose upCreate and start services from compose.yaml.docker compose up -d
43docker compose psList containers managed by Compose.docker compose ps
44docker compose logsShow service logs from Compose.docker compose logs -f
45docker compose execRun a command inside a Compose service container.docker compose exec web sh
46docker compose restartRestart Compose services.docker compose restart
47docker compose downStop and remove Compose containers and networks.docker compose down
48docker compose down -vStop Compose services and remove named volumes too.docker compose down -v
49docker compose buildBuild or rebuild Compose services.docker compose build --no-cache
50docker compose pullPull service images defined in compose.yaml.docker compose pull

🧠 Conclusion

This Docker emulator is ready. The FREE pack contains the active challenges now, while LITE, PRO, and PRO Plus are visible as upcoming expansion tiers for deeper labs, scoring, downloadable runbooks, and advanced Docker Compose scenarios.

Linux: 50 Essential Commands You Should Know

LINUX CLI LAB

Linux: 50 Essential Commands You Should Know

Linux is one of the most widely used operating systems in servers, programming, cloud, DevOps, and system administration. This guide combines a practical table with an interactive emulator to practice commands, reinforce concepts, and visualize simulated changes without touching a real server.

Learning note: the emulator output is simulated for practice, training, and onboarding. On a real system it may vary by distribution, permissions, installed packages, and configuration.

Interactive Linux CLI Emulator

Type a command, use the table, or run a guided challenge. The emulator will show simulated output, feedback and visual changes in the Linux system.

Challenge: run pwd to check the current path.
linux-runbook.md 0/10

Linux CLI

Run the next command to receive guided feedback.

Expected runbook commands pwd
Run the next command to receive guided feedback.
Run the next command to receive guided feedback.
Linux system visualizer Environment ready: no changes yet.
$ Linux emulator ready
Choose a command from the table or type one in the console.

On small screens, the table adapts into cards to avoid content cutoffs.

#CommandDescriptionExampleActions

Conclusion

These 50 Linux commands cover navigation, files, permissions, processes, networking, packages, and day-to-day operations. Practicing them in a simulated environment lets you learn safely before working on real infrastructure.

50 Most-Used AWS CLI Commands and Parameters

☁️ 50 Most-Used AWS CLI Commands and Parameters

AWS Command Line Interface (AWS CLI) lets you manage Amazon Web Services from the terminal. This guide combines a practical reference table with an interactive emulator so readers can practice commands, visualize simulated resources, and reinforce learning without connecting to a real account.

Learning note: emulator output is simulated for training. Real output can vary by region, permissions, AWS CLI version, IAM policies, and existing resources.

🚀 Responsive AWS CLI Emulator

Type a command, choose a suggestion, or click “Use in Emulator” from the table. The emulator will show simulated output, guided feedback, and visual resource movement.

Challenge: run aws configure to start your session.
AWS WORKSPACE
RESOURCE SCOPE 0
aws-runbook.md0/10

AWS CLI

Free challenges are available now. Lite, Pro, and Pro Plus are prepared for future expansion.

Expected runbook commandsaws configure
Run the next command to receive guided feedback.
Run the next command to receive guided feedback.
AWS Resource VisualizerNo changes yet: run a command to move simulated resources.
WORKSPACE OUTPUTwaiting
$ Waiting for an AWS CLI command...
Run a command to see simulated AWS output here.
$ AWS CLI Emulator Ready
Tip: choose a command from the table and click "Use in Emulator".

On small screens, the table automatically becomes cards so content is not cut off.

#Command / ParameterDescriptionExampleActions
1aws configureConfigure credentials, default region, and default output format.aws configure
2aws sts get-caller-identityShow the active identity, AWS account, and ARN.aws sts get-caller-identity
3aws iam list-usersList IAM users in the account.aws iam list-users
4aws iam create-userCreate an IAM user.aws iam create-user --user-name Juan
5aws iam attach-user-policyAttach a managed policy to an IAM user.aws iam attach-user-policy --user-name Juan --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess
6aws iam list-rolesList available IAM roles.aws iam list-roles --output table
7aws s3 lsList S3 buckets or objects under an S3 path.aws s3 ls
8aws s3 mbCreate a new S3 bucket.aws s3 mb s3://mi-bucket
9aws s3 rbRemove an S3 bucket; –force also removes its content.aws s3 rb s3://mi-bucket --force
10aws s3 cpCopy files between local storage and S3, or between S3 paths.aws s3 cp archivo.txt s3://mi-bucket/
11aws s3 syncSynchronize local folders with S3, or S3 with local storage.aws s3 sync ./ s3://mi-bucket/
12aws s3api list-bucketsList buckets using the low-level S3 API.aws s3api list-buckets --query "Buckets[].Name" --output table
13aws ec2 describe-instancesList and describe EC2 instances.aws ec2 describe-instances --output table
14aws ec2 run-instancesLaunch a new EC2 instance.aws ec2 run-instances --image-id ami-12345 --count 1 --instance-type t3.micro --key-name MiLlave --security-groups default
15aws ec2 stop-instancesStop an EC2 instance.aws ec2 stop-instances --instance-ids i-1234567890abcdef0
16aws ec2 start-instancesStart a stopped EC2 instance.aws ec2 start-instances --instance-ids i-1234567890abcdef0
17aws ec2 terminate-instancesTerminate or delete an EC2 instance.aws ec2 terminate-instances --instance-ids i-1234567890abcdef0
18aws ec2 describe-volumesList EBS volumes.aws ec2 describe-volumes --output table
19aws ec2 create-volumeCreate an EBS volume.aws ec2 create-volume --size 10 --region us-east-1 --availability-zone us-east-1a --volume-type gp3
20aws ec2 attach-volumeAttach an EBS volume to an EC2 instance.aws ec2 attach-volume --volume-id vol-123456 --instance-id i-123456 --device /dev/sdf
21aws ec2 delete-volumeDelete an available EBS volume.aws ec2 delete-volume --volume-id vol-123456
22aws ec2 describe-vpcsList available VPCs.aws ec2 describe-vpcs --output table
23aws ec2 create-vpcCreate a VPC.aws ec2 create-vpc --cidr-block 10.0.0.0/16
24aws ec2 describe-security-groupsList security groups.aws ec2 describe-security-groups --output table
25aws ec2 authorize-security-group-ingressAdd an inbound rule to a security group.aws ec2 authorize-security-group-ingress --group-id sg-012345 --protocol tcp --port 80 --cidr 0.0.0.0/0
26aws rds describe-db-instancesList RDS database instances.aws rds describe-db-instances --output table
27aws rds create-db-instanceCreate an RDS database instance.aws rds create-db-instance --db-instance-identifier mi-db --db-instance-class db.t3.micro --engine mysql --allocated-storage 20 --master-username admin --master-user-password clave123
28aws rds delete-db-instanceDelete an RDS database instance.aws rds delete-db-instance --db-instance-identifier mi-db --skip-final-snapshot
29aws lambda list-functionsList Lambda functions.aws lambda list-functions --output table
30aws lambda create-functionCreate a Lambda function.aws lambda create-function --function-name MiFuncion --runtime python3.12 --role arn:aws:iam::123:role/lambda-role --handler index.handler --zip-file fileb://function.zip
31aws lambda invokeInvoke a Lambda function.aws lambda invoke --function-name MiFuncion output.json
32aws logs describe-log-groupsList CloudWatch log groups.aws logs describe-log-groups --log-group-name-prefix /aws/lambda
33aws cloudformation deployDeploy a CloudFormation template.aws cloudformation deploy --template-file template.yml --stack-name MiStack
34aws cloudformation describe-stacksDescribe CloudFormation stacks.aws cloudformation describe-stacks --stack-name MiStack
35aws cloudformation delete-stackDelete a CloudFormation stack.aws cloudformation delete-stack --stack-name MiStack
36aws cloudwatch list-metricsList available CloudWatch metrics.aws cloudwatch list-metrics --namespace AWS/EC2
37aws cloudwatch get-metric-statisticsGet statistics for a metric.aws cloudwatch get-metric-statistics --metric-name CPUUtilization --start-time 2026-06-01T00:00:00Z --end-time 2026-06-02T00:00:00Z --period 3600 --namespace AWS/EC2 --statistics Average --dimensions Name=InstanceId,Value=i-123456
38aws dynamodb list-tablesList DynamoDB tables.aws dynamodb list-tables
39aws dynamodb create-tableCreate a DynamoDB table.aws dynamodb create-table --table-name MiTabla --attribute-definitions AttributeName=ID,AttributeType=S --key-schema AttributeName=ID,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
40aws dynamodb put-itemInsert an item into DynamoDB.aws dynamodb put-item --table-name MiTabla --item '{"ID": {"S": "123"}, "Nombre": {"S": "Juan"}}'
41aws eks list-clustersList EKS clusters.aws eks list-clusters
42aws eks update-kubeconfigUpdate kubeconfig to connect to an EKS cluster.aws eks update-kubeconfig --region us-east-1 --name eks-demo
43aws ecr get-login-passwordGet a login token for Amazon ECR.aws ecr get-login-password --region us-east-1
44aws ecr describe-repositoriesList ECR repositories.aws ecr describe-repositories --output table
45aws ecs list-clustersList ECS clusters.aws ecs list-clusters
46aws ecs list-servicesList services inside an ECS cluster.aws ecs list-services --cluster ecs-demo
47aws ecs update-serviceUpdate an ECS service and optionally force a new deployment.aws ecs update-service --cluster ecs-demo --service web --force-new-deployment
48--regionSpecify the AWS region for a command.aws s3 ls --region us-east-1
49--profileUse a locally configured credential profile.aws s3 ls --profile dev
50--query / --output / --filtersFilter results with JMESPath, change output format, and apply filters.aws ec2 describe-instances --filters "Name=instance-type,Values=t3.micro" --query "Reservations[*].Instances[*].InstanceId" --output table

🧠 Conclusion

This version helps readers practice AWS CLI from WordPress without connecting to a real account. It works well for blogs, pages, free WooCommerce products, Moodle content, and micro-courses because it combines explanation, a searchable command table, quick copy buttons, guided challenges, and infrastructure-flow visualization.