Difference between revisions of "Docker rm"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>docker rm | + | {{lc}} |
+ | <code>[[docker rm]]</code> remove one or more [[containers]]. | ||
+ | |||
+ | |||
+ | <code>docker rm CONTAINER_NAME</code> https://docs.docker.com/engine/reference/commandline/rm/ | ||
<code>-f</code> force | <code>-f</code> force | ||
<code>-v</code> Remove the [[volumes]] associated with the container | <code>-v</code> Remove the [[volumes]] associated with the container | ||
+ | --link , -l Remove the specified link | ||
+ | |||
+ | |||
+ | |||
+ | docker rm 71ae176b8b82 | ||
+ | 71ae176b8b82 | ||
+ | |||
+ | docker rm CONTAINER_NAME | ||
+ | CONTAINER_NAME | ||
+ | |||
+ | docker rm CONTAINER_NAME -f -v | ||
− | + | [[docker rm -f $(docker ps -aq)]] | |
− | |||
− | |||
== Related command == | == Related command == | ||
+ | * <code>[[docker volume rm]]</code> | ||
* <code>[[docker ps]]</code> | * <code>[[docker ps]]</code> | ||
− | + | * <code>[[docker images]]</code> | |
− | + | * <code>[[docker kill]]</code> | |
+ | * <code>[[docker-compose rm]]</code> | ||
+ | * <code>[[docker rmi]]</code> | ||
+ | * <code>[[docker run]]</code> | ||
+ | * <code>[[--rm]]</code> | ||
== See also == | == See also == | ||
− | * {{docker}} | + | * {{docker cmd}} |
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 14:32, 22 February 2023
docker rm
remove one or more containers.
docker rm CONTAINER_NAME
https://docs.docker.com/engine/reference/commandline/rm/
-f
force-v
Remove the volumes associated with the container --link , -l Remove the specified link
docker rm 71ae176b8b82 71ae176b8b82
docker rm CONTAINER_NAME CONTAINER_NAME
docker rm CONTAINER_NAME -f -v
docker rm -f $(docker ps -aq)
Related command[edit]
See also[edit]
Advertising: