Cheatography
https://cheatography.com
Overview
|
Run these docker
sub-commands to have an overview of the Docker daemon. |
|
List running containers |
|
List all containers |
|
List all images |
|
Display version |
|
Various informations on the Daemon |
Building an image
|
Build an image from the current directory, by default. Example: docker build -t my-image .
|
|
The tag of the built image |
|
|
Running a container
|
Run a container from a given image. docker run IMAGE-NAME
|
|
Run in background |
|
Interactive session |
|
TTY |
|
Exposes the port C
of the container to the port H
of the host |
|
Mount the host path H
at the path C
in the container |
|
Remove the container when exited |
|
Give a name to the container |
Docker-Compose
docker-compose [command]
|
Manage the Docker application stack. |
|
Run the stack |
|
Run in the background |
|
Kill all the containers or a specific one if precised |
|
Scale the given container with the given amount of replicas. docker-compose scale CONTAINER=REPLICAS
|
|
List running containers of the stack |
|
Remove the containers |
|
Force (re)build of the stack's containers |
|
|
Managing a container
|
Run the following sub-commands followed by the container ID or name. Example: docker kill nginx
|
|
Get the logs of the container |
|
Follow the logs |
|
Remove the container |
|
Force removal of the container |
|
Kill the container |
|
Inspect the details of a container |
dock-cli
|
Manage the Docker application stack. |
|
Start the application stack |
|
List running containers |
|
Reset the given containers |
|
Run a set of tests about the Docker setup |
|
Install Docker and configure it to have direct IP routing and DNS resolution with DnsDock |
kubectl
--namespace=NAMESPACE
|
Set the command's context |
|
Change the current configuration context. |
|
Get the given object(s). If name is given only get the object with the given name instead of a list. OBJECT can be: pod
, rc
, service
, ds
, deployment
, pvc
, pv
, ingresses
, ... |
|
Outputs a YAML instead of printing the details |
|
Describe the given object. Will display basics and events. |
|
Run a given command in a pod. exec -it POD /bin/bash
|
|
Ask for an interactive shell |
|
Create a resource from the file FILE
|
|
Delete the object of type OBJECT
named NAME
|
|
Get the logs of the pod named POD
|
|
Edit the YAML definition of the object |
|
Created By
Metadata
Favourited By
and 5 more ...
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets