Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Build Flatpak in Unprivileged Docker #3027

@BeatLink

Description

@BeatLink

Linux distribution and version

Gitlab Runner Running ubuntu:18.04 docker image

Flatpak version

1.4.2-flatpak1~bionic

Description of the problem

This is essentially issue #1326, however there are cases where it is impossible to run docker in privileged mode. Is it possible to use flatpak without a privileged docker?

Steps to reproduce

run the following in an unprivileged docker container:
flatpak-builder --disable-rofiles-fuse --repo="$FLATPAK_REPO" "$_FLATPAK_BUILD_FOLDER" "$FLATPAK_JSON_FILE".json;

The result will be:
bwrap: Creating new namespace failed: Operation not permitted

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