yum docker升级后无法启动

日志中报如下错误

Apr 24 15:24:20  dockerd[15989]: failed to start daemon: error initializing graphdriver: prior storage driver devicemapper is deprecated and will be removed in a future release; update the the daemon configuration and explicitly choose this storage driver to continue using it; visit https://docs.docker.com/go/storage-driver/

Apr 24 15:24:20 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

Apr 24 15:24:20 systemd[1]: Failed to start Docker Application Container Engine.

 

解决办法是需要指定storage driver

对应配置项storage-driver添加到/etc/docker/dameon.json文件中.

{
"storage-driver": "devicemapper"
}

 

posted @ 2023-04-24 15:33  Wayde-p  阅读(363)  评论(0)    收藏  举报