The docker rm command removes a container. The container must be stopped before removing it. A container can be removed either by name or identifier:
# docker rm leph1
Alternatively, you can use this:
# docker rm 131aaaeeac79
Linux Shell Scripting Cookbook - Third Edition
by Shantanu Tushar
Published by
Packt Publishing, 2017
The docker rm command removes a container. The container must be stopped before removing it. A container can be removed either by name or identifier:
# docker rm leph1
Alternatively, you can use this:
# docker rm 131aaaeeac79