Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

readme.md

Docker CLI Reference

01. Docker Objects

  • Image
  • Container
  • Volume
  • Network
  • Secret
  • Node

Docker CLI Commands - Syntax

# Docker Commands - Syntax
docker <object> <command> <options>

# Docker Commands - Examples
docker image ls

docker container run hello-world

docker container ls

docker network ls

Generic Docker Commands

# To get help around any docker command
docker <command> --help

docker image --help
docker image ls --help

docker container --help
docker container run --help

Get Docker system details

docker system info
OR
docker info

# Get the list all the docker commands

docker

Docker Objects and supported commands with examples

S.No
Docker Object/Concept
Available Commands (operations)
Examples
1 Image
  • ls
  • build
  • inspect
  • rm
  • prune
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune
2 Container
  • ls
  • create
  • stop
  • run
  • inspect
  • rm
  • kill
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune
3 Volumes
  • ls
  • create
  • inspect
  • rm
  • prune
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune
4 Networks
  • ls
  • create
  • inspect
  • rm
  • prune
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune
5 Secrets
  • ls
  • build
  • inspect
  • rm
  • prune
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune
6 System
  • ls
  • build
  • inspect
  • rm
  • prune
  • docker image ls
  • docker image build .
  • docker image inspect
  • docker image build -t : .
  • docker image prune