Docker command to list all docker information

To list all docker container that been running on our machine, we can use the following command:

docker container ls

But if we want to focus only on docker name, port and image we can use specific command:


docker container ls --format "table {{.Names}}\t{{.Ports}}\t{{.Image}}"

So now we want to see specific and filter our docker container ( by name or by port). We can use the following command:


docker container ls -a -q --filter=name=(container name) --format "table {{.Names}}\t{{.Ports}}\t{{.Image}}"


Source:
Docker container command link
Escaping double curly braces in markdown so question