Docker Commands Lists
Docker Commands Lists
No Command Defnitionn
1 Doker images Will list all the images from your
repo
2 Docker run This command executes a
docker image on your local app
c& creates a running container
out of it.
3 Docker build The command is used to
compile the docker file for
building customer docker
images based.
4 Container This command is used to
perform various operations on
the container.
(docker container
logs/kill/run/start/rm)
5 Docker login This command is used to login
to docker Hub repo from the
CLI.
6 Docker push This command pushes your
docker local repo to a docker
hub.
7 Docker ps Lists all the running container in
the host.
8 Docker stop Shuts down the container
whose ID is specified in
arguments
9 Docker kill Kills the container by stopping
its execution immediately
(similar t force kill)
10 Docker rm Removes the container ID that
is specified in the arguments
11 Docker rmi Removes the name whos name
has been specifies in
arguments.
12 Docker exec Used to access an already
running container and perform
operations inside the container.
13 Docker commit Creates anew image of an
edited container on the local
repo.
14 Docker export Exports a docker image into a
tar file in your local system.
15 Docke import Imports the contents of a tar file
(usually a docker image )into
your local repo.
16 Docker compose Used to power multi containers
applications where various
service will be hosted inside
different containers.
17 Docker swarm Creates a network of docker
engines/hosts to execute
containers in parallel (for
scalling up high availability).ex.
(docker swarm
join/join-token/leave.)
18 Docker service Controls only existing docker
service(ex. Docker service
ls/ps/scale/stop/logs/rm)
19 -i Keeps input open for commands
inside.
20 -d Runs the container in the
background
21 -t 1.Attach a termial to the
container.
2.in docker build for projects
used as to name and tag the
image.