Skip to content

Instantly share code, notes, and snippets.

View aqumus's full-sized avatar

Aquib Vadsaria aqumus

View GitHub Profile
@aqumus
aqumus / docker-cheat-code.txt
Last active December 14, 2022 10:48
Basic docker commands used on daily basis or needed to understand docker technology
Docker cheat book
// Download image and run the docker container
> docker run <image-name> <commands-to-be-run-inside-image>
// run bash inside centos docker image with attached STDIN and TTY
> docker run -it centos bash
// run docker container with docker image and given version
@aqumus
aqumus / kubernetes-cheat-code.txt
Created December 14, 2022 10:50
Basic Kubernetes cli commands used for learning K8, maintaining K8 based setup
Kubernetes
// dry run a pod and dump o/p def in yaml file
kubectl run redis --image=redis --dry-run=client -o yaml > pod-definition.yaml
// dump run pod def in yaml file
kubectl get pod <pod-name> -o yaml > pod-definition.yaml
// edit current pod
kubectl edit pod <pod-name>