随笔-常用记录-docker常用命令(待完善)
停止docker服务
1、停止自定义的监控如果有,比如:
systemctl stop check_docker_service.service
2、停止所有容器
docker stop $(docker ps -aq)
3、停止系统服务
systemctl stop docker.socket docker.service; systemctl disable docker.socket docker.service
systemctl status docker.socket docker.service
docker run继承宿主机的环境变量
env > host_env.txt
docker run --env-file=host_env.txt ...
本文来自博客园,作者:LiYanbin,转载请注明原文链接:https://www.cnblogs.com/stellar-liyanbin/p/18190040

浙公网安备 33010602011771号