# Some useful commands in Docker

DevFeed: [Some useful commands in Docker](<https://devfeed.tech/articles/some-useful-commands-in-docker-27647.md>)

Original publisher: [Read original article](<https://gagor.pro/2016/02/some-useful-commands-in-docker/>)

Author: Tom

Published: 2016-02-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [docker images](<https://devfeed.tech/topics/docker-images.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [commands](<https://devfeed.tech/tags/commands.md>), [container](<https://devfeed.tech/tags/container.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-images](<https://devfeed.tech/tags/docker-images.md>), [image](<https://devfeed.tech/tags/image.md>), [logs](<https://devfeed.tech/tags/logs.md>), [running](<https://devfeed.tech/tags/running.md>), [volumes](<https://devfeed.tech/tags/volumes.md>)

## AI overview

A practical Docker tutorial listing commands for managing containers, images, and volumes, running and entering containers, viewing build logs, and building an image from the current directory.

## Source excerpt

I started playing with Docker and here I will write some commands that where not so obvious at beginning 😃 List running containers: docker ps List also not running containers: docker ps -a Remove all containers (be careful with that): docker rm $(docker ps -a -q) Remove all images: docker rmi $(docker images -q) Docker won't remove any old volumes used by containers, so after some time you may be interested in deleting them all: