← Back In the print window choose “Save as PDF” as the printer.

Docker cheatsheet

Package an app with everything it needs and run it anywhere

UnixDroid

How it works

  1. Pull an image — Download a ready-made package from a registry.
  2. Run a container — The image becomes a running, isolated app.
  3. Map ports — Choose which port on your computer reaches the app.
  4. Throw it away — Delete the container; the image stays for next time.

First steps

docker run hello-world
Check that Docker works
docker ps -a
List containers
docker run -p 127.0.0.1:8080:80 nginx
Run a web server only on your own computer
docker stop <id>
Stop a container
docker image ls
List images
Use official or trusted images, keep them updated, and bind test apps to 127.0.0.1 so others cannot reach them. Practise only on your own computer, your own network or a lab that gives you permission. Using security tools on systems that are not yours can be a crime (in India under the IT Act).