Docker 🛳
Last updated
Last updated
Basic Run Command:
Example: Run a container in detached mode with port mapping:
-d
: Run container in detached mode.
-p 443:443
: Map port 443 on the host to port 443 on the container.
Command:
Lists all running containers.
Command:
Command:
Stops a running container.
Example:
Command:
Command:
Command:
Command:
Example: Running a container with a custom command:
This runs the Ubuntu image and starts the container with the command sleep 3600
(for 1 hour).
Command:
Example:
Command:
Command:
Command:
Displays information about your Docker installation and environment.
Command:
Starts an interactive bash session inside the container.
Command:
Command:
Command:
Starts the services defined in docker-compose.yml
.
Command:
Command:
Command:
Displays real-time statistics about containers' CPU and memory usage.