การทำงานกับ Docker เกี่ยวข้องกับชุด คำสั่ง CLI ที่จำเป็นสำหรับการ build image, การรันและจัดการ container และการตรวจสอบ/debug การรู้คำสั่งเหล่านี้เป็นความรู้ปฏิบัติพื้นฐานที่ใช้ทุกวัน
คำสั่งเกี่ยวกับ image
docker build -t myapp:1.0 . # build an image from a Dockerfile in the current dir
docker images # list local images
docker pull nginx:latest # download an image from a registry
docker push myapp:1.0
docker rmi myapp:1.0
docker tag myapp:1.0 myapp:latest
