Here’s the list of the basic Docker commands that works on both Docker Desktop as well as Docker Engine:
Here’s the list of the Docker commands that manages Docker images and containers flawlessly:
Here’s the list of the basic Docker commands that helps you inspect the containers seamlessly:
Do you want to know how to access the containers? Check out these fundamental commands:
Here’s the list of Docker commands that helps you manage the Docker Images:
Here’s the list of Docker image transfer commands:
Want to know how to build Docker Image? Do check out the list of Image Build Commands:
docker build
docker build [options] .
-t "app/container_name" # name
Create an image
from a Dockerfile.
docker run
docker run [options] IMAGE
# see `docker create` for options
Run a command in an image
.
docker create
docker create [options] IMAGE
-a, --attach # attach stdout/err
-i, --interactive # attach stdin (interactive)
-t, --tty # pseudo-tty
--name NAME # name your image
-p, --publish 5000:5000 # port map
--expose 5432 # expose a port to linked containers
-P, --publish-all # publish all ports
--link container:alias # linking
-v, --volume `pwd`:/app # mount (absolute paths needed)
-e, --env NAME=hello # env vars
$ docker create --name app_redis_1 \
--expose 6379 \
redis:3.0.2
Create a container
from an image
.
docker exec
docker exec [options] CONTAINER COMMAND
-d, --detach # run in background
-i, --interactive # stdin
-t, --tty # interactive
$ docker exec app_web_1 tail logs/development.log
$ docker exec -t -i app_web_1 rails c
Run commands in a container
.
docker start
docker start [options] CONTAINER
-a, --attach # attach stdout/err
-i, --interactive # attach stdin
docker stop [options] CONTAINER
Start/stop a container
.
docker ps
$ docker ps
$ docker ps -a
$ docker kill $ID
Manage container
s using ps/kill.
docker images
$ docker images
REPOSITORY TAG ID
ubuntu 12.10 b750fe78269d
me/myapp latest 7b2431a8d968
$ docker images -a # also show intermediate
Manages image
s.
docker rmi
docker rmi b750fe78269d
Deletes image
s.
reference: here
If you manage Linux servers regularly, you know how important SSH (Secure Shell) is. Whether…
If you’re new to Linux or thinking about switching from Windows or macOS, this guide…
Introduction Site Reliability Engineering (SRE) has become a critical discipline in modern IT operations. The…
Updated: August 17, 2025 A practical guide to the best free CRM (Customer Relationship Management)…
If you run a VPS or dedicated server with Linux, you probably know that managing…
Short summary: Use built-in Linux tools (`who`, `last`, `journalctl`, `/var/log/auth.log`) and optional audit logs to…
This website uses cookies.