DockerManaging containers
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
Connect to an instance running as daemon
Next
This modified text is an extract of the original Stack Overflow Documentation created by following
contributors and released under
CC BY-SA 3.0