Cheat sheet for Docker. It consists of Dockerfile like FROM, RUN, ENTRYPOINT, VOLUME and Docker command like docker build, docker image, docker run.


Index

  1. DockerFile Cheat Sheet
  2. Docker Command Cheat Sheet

Dockerfile Cheat Sheet

I have to make image before running docker container with the image. How to get images I need? I can just pull images from my/someone else’s docker hub repository or I can even make one all by myself.

Do this, I must write Dockerfile. Dockerfile is just like a recipe for building images.


[Picture 1] DockerFile Cheat Sheet

Docker Command Cheat Sheet

Docker is working like linux. It’s tiny which contains minimum setting to run server I can tell. I have to type docker dedicated command to manipulate docker container.


Container

[Picture 2] Container 1


[Picture 3] Continer 2

Debug

[Picture 4] Debug

Duplicate with k8s

[Picture 5] k8s 1


[Picture 6] k8s 2