0% found this document useful (0 votes)
20 views2 pages

Docker Commands Lists

The document provides a list of Docker commands along with their definitions and functionalities. Key commands include 'Docker run' for executing images, 'Docker build' for compiling Docker files, and 'Docker push' for uploading local images to Docker Hub. Additional commands manage containers, networks, and services, enhancing Docker's usability for application deployment.

Uploaded by

Aswanth Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Docker Commands Lists

The document provides a list of Docker commands along with their definitions and functionalities. Key commands include 'Docker run' for executing images, 'Docker build' for compiling Docker files, and 'Docker push' for uploading local images to Docker Hub. Additional commands manage containers, networks, and services, enhancing Docker's usability for application deployment.

Uploaded by

Aswanth Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

S.

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.

22 --rm Removes the container when it


stops.
23 -p Maps ports between the host
and the container.
24 -v Share file between the host and
the container.
25 --name Give your container a custom
name.
26 -e set environment variables.
27 --network Connects the container to the
specific network.
28 -u Run the command as a specific
user.
29 -w Set the working directory for a
command.
30 -f Use a custom docker file

You might also like