转载:https://www.wangt.cc/2020/12/docker%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E9%83%A8%E7%BD%B2laravel/
systemctl enable docker //docker自启动 systemctl daemon-reload //daemo 守护reload systemctl restart docker.service 重启docker服务 docker ps -a //查看所有容器 docker start containeid //启动容器 docker stop containerid //关闭容器 docker restart containerid docker exec -it containerid /bin/bash //进入容器 docker export containerid > name.tar //导出容器 cat docker/name.tar | docker import - imagename //导入容器 docker rm -f containerid //删除容器 docker images //列出本机镜像