重启docker systemctl restart docker 关闭docker systemctl stop docker 启动docker systemctl start docker 启动全部容器 docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
进入容器
docker exec -it 容器ID /bin/bash
查看本地所有镜像
docker images
查看容器日志
docker logs 容器名
2023-12-10 21:16:21
重启docker systemctl restart docker 关闭docker systemctl stop docker 启动docker systemctl start docker 启动全部容器 docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
进入容器
docker exec -it 容器ID /bin/bash
查看本地所有镜像
docker images
查看容器日志
docker logs 容器名