[GH-ISSUE #2579] Running firejail in Docker #1645

Closed
opened 2026-05-05 08:17:49 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @mwz on GitHub (Mar 12, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2579

Hi, I'm trying to run firejail in a Docker container, however I'm not having any luck.

I'm using the following:

  • base docker image openjdk:8 (Debian Stretch)
  • firejail 0.9.44.8-2 (the latest version available)

Running firejail in the following way

firejail --force --noprofile echo hello

results in this error message:

Error clone: main.c:2519 main: Operation not permitted

I've seen in the release notes that the --force flag was removed in 0.9.54 - is it possible to run firejail in Docker? If so, what is the recommended way of doing that?

Originally created by @mwz on GitHub (Mar 12, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2579 Hi, I'm trying to run firejail in a Docker container, however I'm not having any luck. I'm using the following: - base docker image openjdk:8 (Debian Stretch) - firejail 0.9.44.8-2 (the latest version available) Running firejail in the following way ```bash firejail --force --noprofile echo hello ``` results in this error message: > Error clone: main.c:2519 main: Operation not permitted I've seen in the release notes that the `--force` flag was removed in 0.9.54 - is it possible to run firejail in Docker? If so, what is the recommended way of doing that?
gitea-mirror 2026-05-05 08:17:49 -06:00
Author
Owner

@Fred-Barclay commented on GitHub (Mar 13, 2019):

Hi @mwz
As far as I know it's no longer possible to run firejail inside Docker because they both need/use similar features. Sorry -- I know it's not the news you wanted to hear -- maybe someone can correct me if this is actually possible??
https://github.com/netblue30/firejail/issues/1956#issuecomment-391660354

<!-- gh-comment-id:472258736 --> @Fred-Barclay commented on GitHub (Mar 13, 2019): Hi @mwz As far as I know it's no longer possible to run firejail inside Docker because they both need/use similar features. Sorry -- I know it's not the news you wanted to hear -- maybe someone can correct me if this is actually possible?? https://github.com/netblue30/firejail/issues/1956#issuecomment-391660354
Author
Owner

@KOLANICH commented on GitHub (Apr 12, 2019):

I have run FJ in docker in CI environment, IMHO works fine.

<!-- gh-comment-id:482524280 --> @KOLANICH commented on GitHub (Apr 12, 2019): I [have run FJ in docker in CI environment](https://gitlab.com/KOLANICH/GraalVM_deb_packages_CI/-/jobs/191684147), IMHO works fine.
Author
Owner

@matu3ba commented on GitHub (Jun 21, 2019):

@KOLANICH Please refer your firejail version, if you claim otherwise.
This should be closed due to technical reasons otherwise as explained in #1956.

<!-- gh-comment-id:504595713 --> @matu3ba commented on GitHub (Jun 21, 2019): @KOLANICH Please refer your firejail version, if you claim otherwise. This should be closed due to technical reasons otherwise as explained in #1956.
Author
Owner

@Fred-Barclay commented on GitHub (Jun 22, 2019):

Let's close now and reopen later if needed. Thanks everyone! 😄

<!-- gh-comment-id:504700537 --> @Fred-Barclay commented on GitHub (Jun 22, 2019): Let's close now and reopen later if needed. Thanks everyone! :smile:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1645
No description provided.