您的位置 首页 技术

docker启动hello-world容器失败了怎么办

问题描述: image文件hello-world已经被抓取到本地仓库了,但是运行以下命令来运行这个image文件时报错了。 docker container run hello-w…

问题描述:

image文件hello-world已经被抓取到本地仓库了,但是运行以下命令来运行这个image文件时报错了。

docker container run hello-world

原因分析:

docker用的是overlay2文件系统,而系统默认只能识别overlay文件系统。

解决办法:

1、停止docker服务

systemctl stop docker

2、删除docker文件:

rm -rf /var/lib/docker

该命令会删除所有的image镜像,建议提前备份文件。

3、编辑文件

vi /etc/sysconfig/docker-storage

修改docker-storage文件里的内容如下:

f5bfbdbe34f8e45400174fea70378e3.png

4、重新启动docker

推荐教程:docker教程

以上就是docker启动hello-world容器失败了怎么办的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/63479.html

为您推荐

返回顶部