Last active
March 17, 2024 07:04
-
-
Save mystikraz/e47a7fe67fd045005b2daafd59801aa9 to your computer and use it in GitHub Desktop.
dockerComaands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker build . | |
| docker build -t blog/posts . | |
| docker run [image id or image tag] | |
| docker run -it [image id or image tag][cmd] eg. sh | |
| docker ps | |
| docker exec -it [container id][cmd] | |
| docker logs [container id] | |
| docker stop my_container | |
| sudo systemctl stop docker | |
| systemctl enable docker | |
| systemctl start docker | |
| kubectl apply -f posts.yaml | |
| kubectl get pods | |
| kubectl delete -f ./posts.yaml | |
| eval $(minikube docker-env) | |
| kubectl exec -it posts sh | |
| kubectl logs posts | |
| kubectl delete pod posts | |
| kubectl describe pod posts | |
| kubectl get deployments | |
| kubectl describe deployment [depl name] | |
| kubectl apply -f [config file name] | |
| kubectl delete deployment [depl_name] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment