Quickstart

A Dockerfile is a specification for an image. Containers are instances of images.

The first step is to get the image you need. You can either get pre-built images using the pull command. Or use the build command to build custom images based on a Dockerfile.

Once you have an image, use the run command to start a new container.

Running Containers

To interact with a command line program (such as a shell or repl), use docker run -i -t <etc>. For example, here's the command I used to start a Haskell Hugs environment. This maps local directory to same directory on the server: