Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerd 和 luci-app-docker 有些文件都有导致安装失败 #352

Open
zhangguanzhang opened this issue Jan 7, 2022 · 4 comments
Open
Labels
bug Something isn't working

Comments

@zhangguanzhang
Copy link

zhangguanzhang commented Jan 7, 2022

dockerd 的 Makefile里有文件 /etc/config/dockerd /etc/docker/daemon.json /etc/init.d/dockerd

define Package/dockerd/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bundles/binary-daemon/dockerd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/opt/docker/
$(INSTALL_DIR) $(1)/usr/share/docker/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/check-config.sh $(1)/usr/share/docker/
$(INSTALL_DIR) $(1)/etc/docker
$(INSTALL_CONF) ./files/daemon.json $(1)/etc/docker/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dockerd.init $(1)/etc/init.d/dockerd
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/dockerd $(1)/etc/config/dockerd

但是 luci-app-docker 依赖 dockerd,它也有文件这三个文件

https://github.com/coolsnowwolf/luci/tree/master/applications/luci-app-docker/root/etc/config/dockerd
https://github.com/coolsnowwolf/luci/tree/master/applications/luci-app-docker/root/etc/init.d/dockerd
https://github.com/coolsnowwolf/luci/tree/master/applications/luci-app-docker/root/etc/docker/daemon.json

会导致在安装的时候报错这三个文件冲突:

ConfigCollected errors:
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/config/dockerd
	But that file is already provided by package  * dockerd
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/docker/daemon.json
	But that file is already provided by package  * dockerd
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/init.d/dockerd
	But that file is already provided by package  * dockerd
 * opkg_install_cmd: Cannot install package luci-app-docker.
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/config/dockerd
	But that file is already provided by package  * dockerd
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/docker/daemon.json
	But that file is already provided by package  * dockerd
 * check_data_file_clashes: Package luci-app-docker wants to install file /root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/build_dir/target-aarch64_generic_musl/root-rockchip/etc/init.d/dockerd
	But that file is already provided by package  * dockerd

我在老旧的机器上看到这三个文件都属于 luci-app-docker

root@OpenWrt:~# opkg search /etc/config/dockerd 
luci-app-docker - 1-12
root@OpenWrt:~# opkg search /etc/init.d/dockerd 
luci-app-docker - 1-12
root@OpenWrt:~# opkg search /etc/docker/daemon.json 
luci-app-docker - 1-12

@coolsnowwolf PATL

@zhangguanzhang
Copy link
Author

@coolsnowwolf @AmadeusGhost

@zhangguanzhang
Copy link
Author

zhangguanzhang commented Jan 15, 2022

用这个呢

这是两个东西,这个我看是docker的部分资源显示的web可视化管理,我不需要web,我只命令行使用

@zhangguanzhang
Copy link
Author

@coolsnowwolf @AmadeusGhost

@Beginner-Go Beginner-Go added the bug Something isn't working label Jan 19, 2022
@zhangguanzhang
Copy link
Author

zhangguanzhang commented Jun 10, 2022

我对比了 openwrt的仓库和编译出的固件,这三个文件都应该是 dockerd 包的,luci-app-docker这个包官方也没有,这个包不应该抢这三个文件。我删掉 luci-app-docker 后,去用 luci-app-dockerman就了,不理解luci-app-docker包的目的是干啥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants