docker rm | Docker remove container
Removeoneormorecontainersdockerrm[OPTIONS]CONTAINER[CONTAINER...]RemoveoneormorecontainersOptionShortDefaultDescription--force-fForcetheremovalofarunningcontainer(usesSIGKILL)--link-lRemovethespecifiedlink--volumes-vRemoveanonymousvolumesassociatedwiththecontainerRemoveacontainer[1]Thisremovesthecontainerreferencedunderthelink/redis.$el.textContent=content_copy,2000);">content_copy$dockerrm/redis/redisRemovealinkspecifiedwith--linkonthedefaultbridgenetwork(--link)[2]Thisremovestheunderlyi...
Remove one or more containers
docker rm [OPTIONS] CONTAINER [CONTAINER...]Remove one or more containers
OptionShortDefaultDescription--force-fForce the removal of a running container (uses SIGKILL)--link-lRemove the specified link--volumes-vRemove anonymous volumes associated with the containerRemove a container[1]This removes the container referenced under the link /redis.
$el.textContent=content_copy, 2000);"> content_copy$ docker rm /redis /redis Remove a link specified with --link on the default bridge network (--link)[2]This removes the underlying link between /webapp and the /redis containers on the default bridge network, removing all network communication between the two containers. This does not apply when --link is used with user-specified networks.
$el.textContent=content_copy, 2000);"> content_copy$ docker rm --link /webapp/redis /webapp/redis Force-remove a running container (--force)[3]This command force-removes a running container.