From adccf20fbed0632c525889d89f7f7dfd625b1287 Mon Sep 17 00:00:00 2001 From: zyimm Date: Sat, 11 May 2024 21:46:42 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20Ubuntu=2024.04=20docker-desktop=20?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=90=AF=E5=8A=A8=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/Linux/docker/24.04.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _posts/Linux/docker/24.04.md diff --git a/_posts/Linux/docker/24.04.md b/_posts/Linux/docker/24.04.md new file mode 100644 index 0000000..da788e5 --- /dev/null +++ b/_posts/Linux/docker/24.04.md @@ -0,0 +1,19 @@ +--- +title: 🧩Ubuntu 24.04 docker-desktop 无法正常启动处理 +date: 2024-05-11 +tags: + - Docker + - Ubuntu +--- + +最新版本的docker-desktop 无法在ubuntu 24.04上无法正常启动处理,需要在启动之前执行如下命令: + +```sh +sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 +``` + +这是由于最新的 Ubuntu 版本限制非特权命名空间的方式发生了变化导致的。 + +### 参考 + +[问题说明-官方文档](https://docs.docker.com/desktop/install/ubuntu/)