Containers are like apartments in an apartment building. They share infrastructure. They can be many different sizes. You can have different sizes depending on the needs. Containers "live" in a Docker host.
If you build a house, you need many resources. If you build an apartment building, each unit shares resources. Like an apartment, Docker is smaller and satisfies specific needs, is more agile, and more easily changed.
This IBM® Redbooks® publication examines the installation and operation of Docker Enterprise Edition on the IBM Z® platform.