The everyday analogy
Think of a shipping container. Whatever you put inside, it has a standard shape, so any ship, truck or crane can carry it without caring about the contents. A Docker container does the same for software: it wraps your application and its dependencies in a standard package, so any compatible system can run it identically — no "it works on my machine" surprises.