Home > Article > Operation and Maintenance > How docker restarts all container services
docker中 启动所有的容器命令:
docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
docker中 关闭所有的容器命令:
docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)
推荐教程:docker教程
The above is the detailed content of How docker restarts all container services. For more information, please follow other related articles on the PHP Chinese website!