The -q option of docker ps will return only the containers’ IDs: $ docker rm $(docker ps -a -q) Problem You understand how to download images from a publicly available Docker registry but you would like to build your own Docker images. Getting Started with Docker — Docker Cookbook [Book]O’Reilly logo Stay ahead with the world’s most comprehensive technology and business learning platform. Instead, CentOS 7 should be used if you want the latest version of Docker (see Recipe 1.3). Problem You want to use Docker on CentOS 7. Solution Install the Docker package by using the yum package manager. With Safari, you learn the way you learn best.