首页 > 其他分享 >showdoc 重启和启动命令

showdoc 重启和启动命令

时间:2022-09-01 17:45:55浏览次数:70  
标签:container name 启动 重启 docker showdoc

showdoc 重启和启动命令:

showdoc 启动命令:
docker run -d --name showdoc -p 8080:80 -v /showdoc_data/html:/var/www/html/ star7th/showdoc 


问题解决:
docker: Error response from daemon: Conflict. The container name "/showdoc" is already in use by container "78d62251eae09e8e548df80fb34c07061008c85f551083d494502c8b8a0fe96a". You have to remove (or rename) that container to be able to reuse that name.

查询当前容器:docker container ls -all

删除当前容器:
docker container rm showdoc

停止docker:
sudo systemctl stop docker 

启动docker:
sudo systemctl start docker 

 

标签:container,name,启动,重启,docker,showdoc
From: https://www.cnblogs.com/yangzailu/p/14874404.html

相关文章