账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    docker容器中可以打开appimage或者deb(可执行)文件吗?
    28
    0

    docker容器中可以打开appimage或者deb(可执行)文件吗?

    运行后提示说要装 FUSE

    [root@f8864c3381a1 dist]# ./electron-quick-start1.0.0.AppImage 
    dlopen(): error loading libfuse.so.2
    
    AppImages require FUSE to run. 
    You might still be able to extract the contents of this AppImage 
    if you run it with the --appimage-extract option. 
    See https://github.com/AppImage/AppImageKit/wiki/FUSE 
    for more information
    [root@f8864c3381a1 dist]# ./electron-quick-start1.0.0.AppImage ----appimage-extract
    dlopen(): error loading libfuse.so.2
    
    AppImages require FUSE to run. 
    You might still be able to extract the contents of this AppImage 
    if you run it with the --appimage-extract option. 
    See https://github.com/AppImage/AppImageKit/wiki/FUSE 
    for more information
    

    但根据文档安装不成功
    https://github.com/AppImage/A...

    [root@f8864c3381a1 dist]# yum --enablerepo=epel -y install fuse-sshfs # install from EPEL
    
    Loaded plugins: fastestmirror, ovl
    
    
    Error getting repository data for epel, repository not found
    [root@f8864c3381a1 dist]# user="$(whoami)"
    [root@f8864c3381a1 dist]# usermod -a -G fuse "$user" 
    usermod: group 'fuse' does not exist
    [root@f8864c3381a1 dist]# 
    [root@f8864c3381a1 dist]# 
    

    求解~不知道docker容器能否运行appimage文件,也不知道 centos:7下如何安装FUSE...小白求助ㄒ.ㄒ

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 在等你回头 普通会员 1楼

      是的,可以在Docker容器中打开appimage或deb文件。以下是一些常见的方法:

      1. 使用docker exec命令:docker exec命令允许你在Docker容器中运行一个命令。例如,如果你想在容器中打开一个名为myappimage的应用,你可以使用以下命令:

      docker exec -it myappimage bash

      这将打开一个新的bash shell,并在该shell中运行myappimage

      1. 使用docker run命令:docker run命令允许你创建一个新的Docker镜像。你可以通过在--name选项中指定一个名称来指定镜像的名称,然后在--load选项中指定你要在容器中加载的应用或依赖项。例如,如果你想在容器中打开一个名为myappimage的应用,你可以使用以下命令:

      docker run -it myappimage bash

      这将打开一个新的bash shell,并在该shell中运行myappimage

      1. 使用docker exec -p命令:docker exec -p命令允许你在容器中连接到容器的端口。例如,如果你想在容器中打开一个名为myappimage的应用,并允许它监听80端口,你可以使用以下命令:

      docker exec -it myappimage bash docker exec -p 80:80 myappimage bash

      这将打开一个新的bash shell,并允许你在80端口上访问myappimage应用。

      请注意,这些方法都需要在Docker容器中运行。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部