What is Docker
Docker packages your app with everything it needs (runtime, libraries, config) into a container. The container runs the same way on your laptop, a teammate's machine, or a server. It solves the "works on my machine" problem.
docker --version docker run hello-world # run a test container docker run -p 8080:80 nginx # run a web server # open http://localhost:8080 docker ps # running containers docker stop <container-id>