How docker restarts all container services

王林
Release: 2020-03-25 17:46:57
Original
10728 people have browsed it

How docker restarts all container services

docker中 启动所有的容器命令:

docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
Copy after login

docker中 关闭所有的容器命令:

docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)
Copy after login

推荐教程: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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template