Repository navigation
Open
Description
- This is a bug report
- This is a feature request
- I searched existing issues before opening this one
Expected behavior
docker run hello-world
should run normally.
Actual behavior
docker run hello-world
docker: Error response from daemon: cgroups: cannot found cgroup mount destination: unknown.
Steps to reproduce the behavior
Install latest stable or edge builds (17.12 or 18.01), using:
https://docs.docker.com/install/linux/docker-ce/ubuntu/
Output of docker version:
Client:
Version: 18.01.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: 03596f5
Built: Wed Jan 10 20:11:05 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.01.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: 03596f5
Built: Wed Jan 10 20:09:37 2018
OS/Arch: linux/amd64
Experimental: false
Output of docker info:
Containers: 16
Running: 0
Paused: 0
Stopped: 16
Images: 1
Server Version: 18.01.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.4.0
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 512MiB
Name: SRV_01
ID: BBRL:P36V:7QOO:IRBR:X2TC:UC47:4L7N:IIIQ:OLSL:KWS2:OVAZ:TKKF
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No cpuset support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Additional environment details (AWS, VirtualBox, physical, etc.)
> uname -a
Linux DAAA_S1 4.4.0 #1 SMP Fri Jan 5 21:20:16 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux
> ls /sys/fs/cgroup/
beancounter cpu cpuacct freezer memory net_cls,net_prio perf_event systemd
blkio cpu,cpuacct devices hugetlb net_cls net_prio pids ve
AppArmor is also deactivated.
Running under root terminal/normal terminal returns same issue.
Docker pull is working.
Confirmed working under 17.09.1~ce-0~ubuntu
Reacted by duyngq, Marcel Hernandez, David Bishop, karteufel, iwan933, Jeremy Brown, Philipp Kovalev, Andrew Blond, Slava Oliyanchuk, Mikhail Cheshkov and 81 more
Reacted by Arya Reais-Parsi
Metadata
Metadata
Assignees
Labels
No labels
Activity
adriantunez commentedon Feb 13, 2018
Hi @xgenvn, have you fixed that issue? I'm at the same point but it occurs when docker is ran by a pipeline using gitlab ci/cd... Not sure if in my case it is a docker or a gitlab related issue
xgenvn commentedon Feb 13, 2018
@AdrianAntunez I installed specific version:
17.09.1~ce-0~ubuntuand it's working fine now.adriantunez commentedon Feb 15, 2018
@xgenvn I will give it a try ASAP and I will let you know if it worked for me or not. Thx!!
philippbussche commentedon Mar 17, 2018
@AdrianAntunez ran into the same issue, it is working with this configuration for me:
image: docker:17.09
services:
- docker:17.09-dind
hectornevarez commentedon Mar 17, 2018
Same issue here, I'm running:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:40 2018
OS/Arch: linux/amd64
jkbaseer commentedon Mar 20, 2018
@philippbussche hey philip, so only the docker was a problem is it? Am also facing the same problem
My version
`Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:03:51 2017
OS/Arch: darwin/amd64
Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:12:29 2017
OS/Arch: linux/amd64
Experimental: true
`
For me Docker Hello World is working without a issue though.
dinar-dalvi commentedon Mar 22, 2018
I ran into similar issue found a temp fix on another place.
Temp fix:
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
jkbaseer commentedon Mar 22, 2018
Hello @dinar-dalvi thanks a lot! Do i need to do this on the route directory of the Server? or in the app folder(for example: meteor/hello-app/
xgenvn commentedon Mar 22, 2018
@dinar-dalvi I tried this before, however the systemd is existed and mounted. Downgrading seems to fix the issue.
jkbaseer commentedon Mar 22, 2018
@xgenvn: downgrading the container to which version?
xgenvn commentedon Mar 22, 2018
@jkbaseer you might want to try
jkbaseer commentedon Mar 22, 2018
Am i doing it rightly?
(Ps: Also i have few containers am using for other project, will that be removed as well? or is there a single command only to downgrade? )
d-a-v commentedon Mar 28, 2018
On devuan/ascii this worked (over 18.03):
xgenvn commentedon Mar 29, 2018
@jkbaseer no, I was speaking of Ubuntu command line, I'm not sure on Mac.
jkbaseer commentedon Mar 29, 2018
129 remaining items
melekabbassi commentedon Nov 8, 2022
Thank you!!
chore(ci): downgrade github actions runner version
nikos445 commentedon Dec 20, 2022
Almost same problem was occured to my jenkins pipelines after upgrading from Ubuntu Server 21.04 to 22.04.
The solution that worked for me was to disable the cgroup_hierarchy from grub boot.
Note: I am using
containerdandruncinstead ofdockerbut this may work also indockerSolution Commands:
Previously mentioned solution did not work... it was displaying that mounts was already mounted
leni1 commentedon Jan 9, 2023
Had an issue related to this and a re-install of
dockerworked for me on KDE Neon 5.24 (which uses Ubuntu 22.04 as a base)Lupunita commentedon Jan 12, 2023
In cgroups v2 - By default, a non-root user can only get memory controller and pids controller to be delegated.
I resolved this by following steps from https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
TheMessik commentedon Feb 18, 2023
Has anyone managed to resolve this?
drpaneas commentedon Apr 4, 2023
I encountered this as well ...
nutellatux commentedon May 5, 2023
OS: "Ubuntu 22.04.2 LTS" its fixed!!!! TKS!!!!!!!!!!!!
renepavlik commentedon May 26, 2023
I just faced this after upgrading a debian stretch machine to bullseye. The trick with
worked for me, but it was a bad lead.
The root of the problem was elsewhere, in the fact, that
docker-ce(and related) package was staying on the old version built for stretch. This means it works on bullseye but uses cgroups v1 while in bullseye, there is cgroups2.The real resolution was to upgrade
docker-ceto the bullseye version.Sieboldianus commentedon Jul 27, 2023
Thanks @renepavlik . I can confirm, updating docker solved this problem for me under Debian bullseye. Here's the link to how to do this, just follow https://docs.docker.com/engine/install/debian/#install-using-the-repository.
magnusja commentedon Nov 29, 2023
OMG thank you so much! This should be the highlighted solution!
greatquux commentedon Nov 30, 2023
@magnusja this is definitely helpful, however these are steps everyone should take after an Ubuntu upgrade if they have added any PPAs to their system. for safety during the upgrade they get disabled, and these steps should be taken to re-enable them afterwards. this can help get the latest package versions installed for the new Ubuntu you have upgraded to. there are other reasons why this message may come up however, so it's not necessarily the solution for everyone, but is good general advice nonetheless.
magnusja commentedon Dec 1, 2023
I mean if Ubuntu is not able to provide a working Docker package in their own repos, then certainly using Docker official PPA is the way to go. I agree that you probably should think about if you want to activate other PPAs as well. But people also added the PPA back in the days for a reason.
fix: run old Docker versions on Ubuntu 20.04
adebisi-fa commentedon Apr 18, 2024
This worked for me, in 2024. Thank YOU @dinar-dalvi!!
SERVER:
Ubuntu 22.04.
Client: Docker Engine - Community
Version: 26.0.1
API version: 1.40 (downgraded from 1.45)
Go version: go1.21.9
Git commit: d260a54
Built: Thu Apr 11 10:53:25 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 19.03.12
API version: 1.40 (minimum version 1.12)
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:44:17 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683