Skip to content

functions.sh generate_appimage fails to work in a CentOS 7 Docker container: failed to open /dev/fuse  #144

Open

Description

@fusion809

Hi,

I downloaded the functions.sh script from this repo, ran it (with . /functions.sh) and ran generate_appimage and it gave the error message:

Location: https://github-cloud.s3.amazonaws.com/releases/9435153/d4fbde64-7778-11e6-9e10-37eb60fc42de.AppImage?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161121T181043Z&X-Amz-Expires=300&X-Amz-Signature=cb05496433e76f4588783bc2452e411089d14c3e007540fdbef1a13a05e382e0&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DAppImageAssistant_6-x86_64.AppImage&response-content-type=application%2Foctet-stream [following]
--2016-11-21 18:10:44--  https://github-cloud.s3.amazonaws.com/releases/9435153/d4fbde64-7778-11e6-9e10-37eb60fc42de.AppImage?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161121T181043Z&X-Amz-Expires=300&X-Amz-Signature=cb05496433e76f4588783bc2452e411089d14c3e007540fdbef1a13a05e382e0&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DAppImageAssistant_6-x86_64.AppImage&response-content-type=application%2Foctet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 52.216.1.160
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|52.216.1.160|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1245184 (1.2M) [application/octet-stream]
Saving to: ‘AppImageAssistant’

100%[====================================================================>] 1,245,184    323KB/s   in 3.8s   

2016-11-21 18:10:49 (323 KB/s) - ‘AppImageAssistant’ saved [1245184/1245184]

fuse: failed to open /dev/fuse: Operation not permitted
Could not mount AppImage
Please see https://github.com/probonopd/AppImageKit/wiki/FUSE

I have fuse and squashfs installed, specifically I have run:

yum install -y git gcc gcc-c++ xz libtool make bzip2 perl wget sudo squashfs-tools fuse fuse-libs fuseiso lzma \
               yum-utils gtk-doc epel-release libffi-devel

If relevant my AppDir is /AppDir.

Thanks for your time,
Brenton

Activity

  1. fusion809 commented on Nov 21, 2016

    @fusion809
    Author

    Travis CI is even giving me errors because of this https://travis-ci.org/fusion809/AppImages/builds/177757649.

  2. gornostal commented on Feb 19, 2017

    @gornostal

    Try adding the following arguments to docker run:
    --cap-add SYS_ADMIN --cap-add MKNOD --device=/dev/fuse
    If you're running Ubuntu container, you may need this one as well:
    --security-opt apparmor:unconfined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions