how to get id of running container docker code example Example 1: docker check running containers docker ps -a Example 2: docker ps view command docker ps --no-trunc