Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

docker

Container platform CLI

Syntax

docker [OPTION]... COMMAND

Common Options

runCreate and run container
psList running containers
imagesList images
buildBuild image
pullPull image
execExecute in container
stopStop container
rmRemove container
rmiRemove image
logsView container logs
composeManage multi-container apps

Common Examples

docker run -d -p 8080:80 nginx

Run nginx container

docker ps -a

List all containers

docker exec -it container_id bash

Enter container shell

docker logs -f container_id

Follow container logs

docker build -t myapp .

Build image

docker compose up -d

Start compose services

Related Tools

More Code & Dev Tools