Docker Managing containers

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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.


Got any Docker Question?