Learn how to disable LXCFS in Ubuntu safely, fix Docker user errors, and remove cgroup mounts with real commands. A clean, clear guide for everyday users. Our 24/7 Live Support Team is always here to help you.
If you’ve been fighting strange Docker errors on your server, you’re not alone. One common culprit is LXCFS. And when it shows up uninvited in your setup, things get messy fast. So today, let’s break down the real-world steps to ubuntu lxcfs disable so your Docker environment behaves the way it should.
Most users only notice the issue when a simple container refuses to start, usually throwing this vague message:
docker: Error response from daemon: Container command 'date' could not be invoked.
The first reaction is confusion. But once you dig a bit deeper, you’ll spot the problem: LXCFS is mounting its own cgroup paths, and Docker doesn’t like that at all, especially when user namespaces are turned on.

Overview
What Is LXCFS and Why It Causes Trouble
LXCFS is a small FUSE filesystem that makes containers feel more like VMs. That sounds good in theory, but if you’re not using LXC or LXD, it only gets in your way.
And this is where the keyword ubuntu lxcfs disable becomes important.
To confirm whether LXCFS is causing the error, run:
mount | grep lxc
If you see a long list of cgroup mounts like:
tmpfs on /run/lxcfs/controllers
memory on /run/lxcfs/controllers/memory
cpu,cpuacct on /run/lxcfs/controllers/cpu,cpuacct
then yes, LXCFS is hijacking your cgroup layout.
The Quickest Fix: Remove LXCFS Completely
If you don’t run LXC/LXD, removing LXCFS is the cleanest way forward.
This is the safest and most popular solution for anyone looking to ubuntu lxcfs disable without breaking anything.
Use:
sudo apt-get remove lxcfs
If you want a deeper cleanup:
sudo apt-get remove --auto-remove lxcfs
Or wipe configs as well:
sudo apt-get purge --auto-remove lxcfs
After that, reboot:
shutdown -r now
Once the system comes back up, you won’t see the extra cgroup mounts anymore. This instantly clears the Docker user namespace issue.
Fix Docker Issues Instantly Here

If You Want to Remove LXC Completely
Some servers ship with LXC and LXD preinstalled. If you want a full ubuntu lxcfs disable environment, remove them as well.
First, stop LXCFS:
service lxcfs stop
Then remove all LXC/LXD packages:
apt-get remove lxc-common lxcfs lxd lxd-client
But keep in mind, stopping LXCFS doesn’t auto-unmount the cgroups. You must manually unmount them if you don’t want to reboot:
for i in name=systemd blkio cpu,cpuacct freezer devices net_cls,net_prio perf_event pids hugetlb memory cpuset; do umount /run/lxcfs/controllers/$i; done
umount /var/lxcfs/controllers
And finally, test your Docker setup again:
docker run --rm busybox date
If it prints the time, your system is clean.
Conclusion
Troubleshooting Docker shouldn’t eat your whole day. And with the growing number of Ubuntu users bumping into this conflict, the need for reliable ubuntu lxcfs disable instructions is higher than ever.
So instead of digging through scattered forum posts and outdated threads, this guide gives you the exact steps that actually fix the issue.
