docker启动报INFO[2023-05-18T00:48:50.736666287+08:00] Error while creating filesystem xfs on device docker-253:1-48462499-base: exit status 1 storage-driver=devicemapper failed to start daemon: error initializing graphdriver: exit status 1: devicemapper
时间: 2023-06-26 16:04:40 浏览: 75
这个错误通常是由于 Docker 存储驱动程序的问题导致的。建议你尝试以下解决方法:
1. 更新 Docker 版本,因为这个问题可能是 Docker 版本太旧导致的。
2. 尝试更改 Docker 存储驱动程序为 overlay2,因为这是目前推荐的存储驱动程序。可以通过修改 /etc/docker/daemon.json 文件来更改存储驱动程序,将其中的 storage-driver 值更改为 overlay2。
3. 如果使用的是 CentOS 或者 RHEL 系统,可以尝试更新内核版本,因为这个问题可能与旧版内核有关。
希望这些解决方法能够帮到你!
相关问题
[2023-05-31 11:07:02] Started by user coding [2023-05-31 11:07:02] Running in Durability level: MAX_SURVIVABILITY [2023-05-31 11:07:04] [Pipeline] Start of Pipeline [2023-05-31 11:07:06] [Pipeline] getContext [2023-05-31 11:07:07] [Pipeline] node [2023-05-31 11:07:07] Running on Jenkins in /root/codingci/tools/jenkins_home/workspace/2553946-cci-31810232-464995 [2023-05-31 11:07:07] [Pipeline] { [2023-05-31 11:07:08] [Pipeline] withEnv [2023-05-31 11:07:08] [Pipeline] { [2023-05-31 11:07:08] [Pipeline] withDockerRegistry [2023-05-31 11:07:08] [Pipeline] { [2023-05-31 11:07:08] [Pipeline] isUnix [2023-05-31 11:07:08] [Pipeline] sh [2023-05-31 11:07:08] + docker inspect -f . public/docker/nodejs:18-2022 [2023-05-31 11:07:08] /root/codingci/tools/jenkins_home/workspace/2553946-cci-31810232-464995@tmp/durable-221f7a67/script.sh: 1: docker: not found [2023-05-31 11:07:08] [Pipeline] isUnix [2023-05-31 11:07:08] [Pipeline] sh [2023-05-31 11:07:09] + docker inspect -f . coding-public-docker.pkg.coding.net/public/docker/nodejs:18-2022 [2023-05-31 11:07:09] /root/codingci/tools/jenkins_home/workspace/2553946-cci-31810232-464995@tmp/durable-4892b310/script.sh: 1: docker: not found [2023-05-31 11:07:09] [Pipeline] isUnix [2023-05-31 11:07:09] [Pipeline] sh [2023-05-31 11:07:09] + docker pull coding-public-docker.pkg.coding.net/public/docker/nodejs:18-2022 [2023-05-31 11:07:09] /root/codingci/tools/jenkins_home/workspace/2553946-cci-31810232-464995@tmp/durable-0770ad1b/script.sh: 1: docker: not found [2023-05-31 11:07:09] [Pipeline] } [2023-05-31 11:07:09] [Pipeline] // withDockerRegistry [2023-05-31 11:07:09] [Pipeline] } [2023-05-31 11:07:09] [Pipeline] // withEnv [2023-05-31 11:07:09] [Pipeline] } [2023-05-31 11:07:09] [Pipeline] // node [2023-05-31 11:07:09] [Pipeline] End of Pipeline [2023-05-31 11:07:09] ERROR: script returned exit code 127 [2023-05-31 11:07:09] Finished: FAILURE
根据你提供的日志信息,可以看到其中出现了以下错误信息:
```
docker: not found
```
这个错误一般是因为你的机器上没有安装 Docker,或者 Jenkins 没有正确配置 Docker 环境。请检查一下你的机器上是否安装了 Docker,如果没有,请先安装 Docker,然后再重新配置 Jenkins 的 Docker 环境。如果你已经安装了 Docker,那么可能是 Jenkins 的 Docker 环境配置有误,请检查一下 Jenkins 的 Docker 环境配置是否正确。
Docker+Desktop+-+Unexpected+wSL+error:An+unexpected+error+was+encountered+while+executing+a+WSL+comm
Docker Desktop is a tool that allows you to run and manage Docker containers on your local machine. It provides an easy-to-use graphical interface for managing containers, images, and networks.
The error message "Unexpected wSL error: An unexpected error was encountered while executing a WSL command" typically occurs when there is an issue with the Windows Subsystem for Linux (WSL) component that Docker relies on.
To troubleshoot this error, you can try the following steps:
1. Update Docker Desktop: Make sure you are using the latest version of Docker Desktop. Check for updates and install any available updates.
2. Restart Docker Desktop: Sometimes, restarting Docker Desktop can resolve temporary issues. Right-click on the Docker Desktop icon in the system tray and select "Restart".
3. Reset WSL: If the issue persists, you can try resetting the WSL component. Open PowerShell as an administrator and run the following command:
```
wsl --shutdown
```
4. Reinstall Docker Desktop: If none of the above steps work, you can try uninstalling and reinstalling Docker Desktop. Make sure to backup any important data before uninstalling.