Docker

Docker is a developer tool to containerize applications.

Common commands

Look at currently running containers:

docker ps

Look at built images:

docker image ls

Build an image:

docker build -t <container-name> [--file <file-name>].

Run image:

docker run -p 8080:80 <container-name>

Look inside current running container:

docker exec -it <container-id> sh