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

erro ao criar container docker #46776

Closed
ThiagoSantos1986 opened this issue Nov 5, 2023 · 6 comments
Closed

erro ao criar container docker #46776

ThiagoSantos1986 opened this issue Nov 5, 2023 · 6 comments
Labels
kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/more-info-needed status/0-triage version/24.0

Comments

@ThiagoSantos1986
Copy link

Description

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: cgroup namespaces aren't enabled in the kernel: unknown.

Reproduce

docker run hello-world

Expected behavior

No response

docker version

version 24.0.7

docker info

..

Additional Info

instalei o docker atraves de um servidor OMV

@ThiagoSantos1986 ThiagoSantos1986 added kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/0-triage labels Nov 5, 2023
@thaJeztah
Copy link
Member

Please provide more information as requested in the issue-template that was shown when you opened this issue.

  • provide the full output of docker version
  • provide the full output of docker info
  • provide the exact steps to reproduce. If the steps to reproduce require custom images, or source code, provide a minimal test-case to reproduce. Keep in mind that we don't have access to your private images or source code. Without steps to reproduce, or a reproducible case it's unlikely that your issue can be resolved.

@ThiagoSantos1986
Copy link
Author

ThiagoSantos1986 commented Nov 9, 2023

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/port/port.yml' --env-file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/port/port.env' --env-file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/global.env' up -d  portainer 2>&1':  Container portainer  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: cgroup namespaces aren't enabled in the kernel: unknown

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/port/port.yml' --env-file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/port/port.env' --env-file '/srv/dev-disk-by-uuid-eb33fdc5-6127-414d-944d-d02415aa708c/docker/global.env' up -d  portainer 2>&1':  Container portainer  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: cgroup namespaces aren't enabled in the kernel: unknown in /usr/share/openmediavault/engined/rpc/compose.inc:921
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMVRpcServiceCompose->{closure}('/tmp/bgstatusGz...', '/tmp/bgoutputhz...')
#1 /usr/share/openmediavault/engined/rpc/compose.inc(924): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceCompose->doServiceCommand(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doServiceComman...', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doServiceComman...', Array, Array, 1)
#6 {main}

@Sanjib8830
Copy link

Issue may be due to Control group (cgroups) which may not enabled in your Linux Kernel.

  1. Check the Linux kernel version using below command
    uname -r
    Make sure, your running kernel version should support cgroup namespaces.

  2. Update the kernel Parameters:
    check the bootloader configuration file and update with the follwing namespace as 1.
    sudo nano /etc/default/grub
    GRUB_CMDLINE_LINUX="cgroup_namespace=1"
    sudo update-grub

  3. Reboot your system.
    sudo reboot

@ThiagoSantos1986
Copy link
Author

ThiagoSantos1986 commented Nov 9, 2023

root@rk322x-box:~# docker run hello-world
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: cgroup namespaces aren't enabled in the kernel: unknown.
ERRO[0002] error waiting for container:

@carlonchosando
Copy link

carlonchosando commented Mar 4, 2024

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install 'openmediavault-diskstats' 2>&1' with exit code '100': Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed:
  openmediavault-diskstats
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.4 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Err:1 http://packages.openmediavault.org/public shaitan/main amd64 openmediavault-diskstats all 6.0.5-1
  Could not resolve 'packages.openmediavault.org'
E: Failed to fetch http://packages.openmediavault.org/public/pool/main/o/openmediavault-diskstats/openmediavault-diskstats_6.0.5-1_all.deb  Could not resolve 'packages.openmediavault.org'
E: Internal Error, ordering was unable to handle the media swap

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install 'openmediavault-diskstats' 2>&1' with exit code '100': Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed:
  openmediavault-diskstats
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.4 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Err:1 http://packages.openmediavault.org/public shaitan/main amd64 openmediavault-diskstats all 6.0.5-1
  Could not resolve 'packages.openmediavault.org'
E: Failed to fetch http://packages.openmediavault.org/public/pool/main/o/openmediavault-diskstats/openmediavault-diskstats_6.0.5-1_all.deb  Could not resolve 'packages.openmediavault.org'
E: Internal Error, ordering was unable to handle the media swap in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:250
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): Engined\Rpc\PluginMgmt->Engined\Rpc\{closure}('/tmp/bgstatusGH...', '/tmp/bgoutputJa...')
#1 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(253): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\PluginMgmt->install(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('install', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Plugin', 'install', Array, Array, 1)
#6 {main}

@thaJeztah
Copy link
Member

Closing this ticket as there's nothing actionable here, and it's becoming a "show me a random command that failed" thread.

@thaJeztah thaJeztah closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
@moby moby locked as off-topic and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/more-info-needed status/0-triage version/24.0
Projects
None yet
Development

No branches or pull requests

4 participants