随笔-常用记录-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 ...
posted @ 2024-05-13 21:22  LiYanbin  阅读(15)  评论(0)    收藏  举报