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

[Error] - Unable to Start Container Process: Error Mounting "proc" to Rootfs #1344

Open
byteshiva opened this issue Apr 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@byteshiva
Copy link

byteshiva commented Apr 16, 2024

Description:
When following the steps outlined in the documentation to create a distrobox using the distrobox command, users encounter an error when attempting to enter the created distrobox. The error message indicates a failure in mounting "proc" to the rootfs, leading to the inability to start the container process.

Steps to Reproduce:

  1. Execute the following command to create a distrobox:

    nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz" -p distrobox
  2. Create a distrobox named "test" using the following command:

    distrobox create -n test
  3. When prompted to pull the image, respond affirmatively (Y) to proceed with pulling the image.

  4. Upon successful creation of the distrobox, attempt to enter it using the command:

    distrobox enter test

Expected Behavior:
The user should be able to enter the created distrobox without encountering any errors, allowing them to utilize its functionalities.

Actual Behavior:
After attempting to enter the distrobox, an error is encountered with the following message:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "proc" to rootfs at "/proc": mount proc:/proc (via /proc/self/fd/6), flags: 0xe: operation not permitted: unknown
Error: failed to start containers: test
docker start   1a
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "proc" to rootfs at "/proc": mount proc:/proc (via /proc/self/fd/6), flags: 0xe: operation not permitted: unknown
Error: failed to start containers: 1a

Additional Information:

  • Image used: registry.fedoraproject.org/fedora-toolbox:39
  • Operating System: nixos
  • Docker Version: docker version Client: Version: 20.10.25 API version: 1.41
@byteshiva byteshiva added the bug Something isn't working label Apr 16, 2024
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

1 participant