Stats

288 Contributors: 21
2017-01-20
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Managing containers

Download docker eBook

Syntax

  • docker rm [OPTIONS] CONTAINER [CONTAINER...]
  • docker attach [OPTIONS] CONTAINER
  • docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
  • docker ps [OPTIONS]
  • docker logs [OPTIONS] CONTAINER
  • docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]

Remarks

  • In the examples above, whenever container is a parameter of the docker command, it is mentioned as <container> or container id or <CONTAINER_NAME>. In all these places you can either pass a container name or container id to specify a container.

Related Examples