重启docker服务:systemctl restart docker
启动docker容器:
单个:docker start 容器ID或名称
所有:docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
停止docker容器: 单个:docker stop 容器ID或名称 所有:docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)
进入docker容器:
docker exec -it 容器ID bash
启动报错:Error response from daemon: oci runtime error: container with id exists:xxx
1.先删除(/run/runc)下的运行文件:rm -rf /run/runc/**
2.再重启