Source: https://gist.github.com/bradtraversy/89fad226dc058a41b596d586022a9bd3#file-docker-help-md
docker version
docker info
docker help
docker container run -it -p 80:80 nginx
docker run -it -p 80:80 nginx
docker container run -d -p 80:80 nginx
docker container run -d -p 80:80 --name nginx-server nginx
docker container ls
docker ps
docker container logs nginx-server
docker container stats nginx-server
docker container stop nginx-server
docker container start nginx-server
docker container run -it --name nginx-bash-test nginx bash
docker container exec -it nginx-server bash
docker container rm nginx-server
docker container rm -f nginx-server
docker rm -f $(docker ps -aq)
docker image ls
docker pull [IMAGE]
docker image build -t nginx-website .
docker container run -d -p 80:80 nginx-website
docker rm -f $(docker ps -aq)
docker image rm nginx-website
docker-compose up
docker-compose up -d
docker-compose ps
docker-compose stop
docker-compose start
docker-compose down
Source: https://cloud.google.com/kubernetes-engine/docs/quickstarts/deploy-app-container-image
gcloud config set project pixie-playground
gcloud config set "compute/zone" europe-west3-a
gcloud config set "compute/region" europe-west3
gcloud container clusters create antonmry-pixie-cluster --num-nodes=2 --machine-type=e2-standard-4
gcloud container clusters get-credentials antonmry-pixie-cluster
kubectl get nodes
kubectl get pods --all-namespaces
kubectl apply -f deployment.yaml
kubectl get deployments
kubectl get pods
kubectl apply -f service.yaml
kubectl get services
kubectl scale deployment helloworld-gke --replicas=3
kubectl autoscale deployment helloworld-gke --cpu-percent=80 --min=1 --max=5
gcloud container clusters delete antonmry-pixie-cluster