Home >Operation and Maintenance >Docker >What should I do if the docker container cannot be deleted?

What should I do if the docker container cannot be deleted?

王林
王林Original
2020-03-23 18:20:452748browse

What should I do if the docker container cannot be deleted?

The solution is as follows:

1. Pause the container first

docker stop 容器ID\容器名

2. Clear the network

docker network disconnect --force bridge 容器ID\容器名

3. Forcefully delete the container

docker rm -f 容器ID\容器名

Recommended tutorial:docker tutorial

The above is the detailed content of What should I do if the docker container cannot be deleted?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn