89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.43k stars 385 forks source link

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

Open byteshiva opened 2 months ago

byteshiva commented 2 months ago

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:

89luca89 commented 3 weeks ago

Does podman work instead?