Home  >  Article  >  Operation and Maintenance  >  What to do if the docker container fails to restart

What to do if the docker container fails to restart

王林
王林Original
2020-03-25 18:05:103574browse

What to do if the docker container fails to restart

1、查看docker占用的挂载点

cat /proc/mounts | grep "mapper/docker" | awk '{print $2}'

2、手动umount卸载占用的挂载点

3、再次启动

docker ps -aq | xargs -I {} docker start {}

推荐教程:docker教程

The above is the detailed content of What to do if the docker container fails to restart. 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
Previous article:How docker runs a projectNext article:How docker runs a project