Files
StudyDiary-20261009/10-WebClipper/飞牛fnOS安装1Panel之后,所有docker容器都消失看不见的解决方法.md
CrazyJasonwell e97be9ac8c commit all
2026-10-09 22:06:40 +08:00

40 lines
1.8 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "飞牛fnOS安装1Panel之后,所有docker容器都消失看不见的解决方法"
source: "https://www.bilibili.com/opus/1005571686489128969"
author:
- "[[哔哩哔哩]]"
published:
created: 2025-12-10
description:
tags:
- "clippings"
---
飞牛fnOS安装1Panel之后,所有docker容器都消失看不见的解决方法
![](https://i1.hdslb.com/bfs/face/1cc7d97b17a61480b98176ed748b7afee53d45c7.jpg@96w_96h_1c_1s.webp)
好用斋
2024年11月30日 19:31
好几位朋友飞牛系统(fnOS)中安装了1Panel之后,所有的docker容器都看不到了,无论是飞牛的容器管理还是1Panel的容器管理。其实这个是大家在1Panel安装的过程当中选择了镜像加速的原因,所以“是否配置镜像加速”这里一定要选n!一定要选n!一定要选n!
因为一旦你选择了镜像加速,1Panel就会直接修改daemon.json文件,进行镜像加速,问题是这个文件里面,飞牛不光有镜像源,还有docker的配置路径,一旦被重写,docker配置路径丢失,自然所有的docker容器也都看不到了。
不过如果大家不小心选择了镜像加速,文件被改写,也有亡羊补牢的办法,不要担心。
解决方法:
1\. 修改daemon.json文件,进入飞牛ssh终端,输入命令:
nano /etc/docker/daemon.json
2\. 将里面全部内容删除,然后复制粘贴如下内容
{"data-root":"/vol1/docker","insecure-registries":\["127.0.0.1:19827"\],"live-restore":true,"registry-mirrors":\["https://docker.ketches.cn"\]}
3\. 按ctrl+s键保存,按ctrl+x键退出,然后重启飞牛系统即可,重新启动完毕,就可以看到所有的docker容器回来了,当然1Panel也可以正常使用。
如果这篇文章对你有所帮助,记得点赞支持~
投诉或建议