A container is an isolated process that packages an application and its dependencies and shares the host machine's kernel. Lighter than a virtual machine, it starts fast and runs identically from one environment to another. Its file system is ephemeral by default.
Example
docker run --rm -p 8080:80 nginx