Postgres never starts in Docker on Ubuntu 26.04: "docker-default//&unconfined"
An AppArmor fix in the Linux kernel (08c2f7c8d4b1, "apparmor: fix unconfined user namespace restriction forced stack") has reached Ubuntu 26.04's newer kernels and Debian 13's 6.12.115. Ubuntu turns on kernel.apparmor_restrict_unprivileged_unconfined=1 by default, and with it the kernel now stacks the container's profile: processes run as docker-default//&unconfined instead of docker-default. Docker's default profile only lets a process signal peers named docker-default, so the processes of one container can no longer signal each other (moby #54099, open).
What it looks like
- The official
postgresormariadbimage starts and writes nothing.gosuin the entrypoint spins at 100% CPU. In a workflow, a service container with a health check never becomes healthy, and the job ends withService container postgres failed., an empty log,Failed to initialize container postgres:17andOne or more containers failed to start. - Without
gosu:pg_ctl: could not send stop signal (PID: 47): Permission denied, orcould not signal for checkpoint: Permission denied. - Node.js in a
docker buildstep:Error: kill EACCESwhen Next.js stops its build workers (runs-on #116). - In the host's kernel log:
apparmor="DENIED" operation="signal" ... profile="docker-default" comm="gosu" ... peer="docker-default//&unconfined".
gosu is written in Go, and Go changes the user of every thread by sending each one a signal. When that signal is denied, it waits forever, which is why the container hangs instead of failing.
When the Postgres service never comes up on Ubuntu 26.04: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, lists the runs of all your repositories with their jobs and steps in an IDE tool window, so the jobs that failed on the new image stand out.
Where it was reported
- Ubuntu 26.04 on
7.0.0-42-generic(a VMware VM, in moby #54099) and7.0.0-1016-aws(runs-on's November 2 images; the October 21 images on7.0.0-1014-awswere fine). A k3s cluster went down when its workers rebooted from 7.0.0-38 into 7.0.0-42 (seichi_infra #6671). - Debian 13 after a kernel update from 6.12.113 to 6.12.115 (a comment on moby #54099).
- containerd and Kubernetes have the same rule in their default profile (containerd #14485).
So in GitHub Actions this hits self-hosted runners and third-party runner images that boot one of these kernels. GitHub-hosted runners (image 20261026, kernel 7.0.0-1017-azure on both ubuntu-24.04 and ubuntu-26.04) had no reports as of November 4.
Check a host
uname -r sysctl kernel.apparmor_restrict_unprivileged_unconfined docker run --rm busybox:1.36 sh -c 'cat /proc/self/attr/current; sleep 30 & kill -TERM $! && echo SIGNAL_OK || echo SIGNAL_DENIED'
An affected host prints docker-default//&unconfined (enforce) and SIGNAL_DENIED.
Fix for one container: no AppArmor profile
services:
postgres:
image: postgres:17
options: >-
--security-opt apparmor=unconfined
--health-cmd pg_isready
--health-interval 5s
Outside a workflow it is docker run --security-opt apparmor=unconfined. The same option works under container: for a job container. It leaves the host alone and takes AppArmor off that container only. --security-opt seccomp=unconfined does not help, because seccomp is not what denies the signal.
Fix for the host: the sysctl
echo 'kernel.apparmor_restrict_unprivileged_unconfined = 0' | sudo tee /etc/sysctl.d/99-container-signals.conf sudo sysctl --system
Containers keep docker-default and can signal each other again. On runs-on, one user put the same sysctl in the image's preinstall step and their builds passed (runs-on #116). This turns off a restriction Ubuntu enables on purpose, so prefer the per-container option where you can.
Other ways out
- containerd and Kubernetes: a pull request adds
peer=<profile>//&*to the signal and ptrace rules of the default profile (containerd #14487, open). Some operators load that profile on their nodes themselves;appArmorProfile: {type: Unconfined}in the pod's security context is the per-pod way out. - Boot the previous kernel and hold it (7.0.0-38 on Ubuntu 26.04). That is only for a few days: the later kernels carry security fixes.
Telling it apart
bash -c 'echo ok'in the same image works, andgosu postgres idhangs: it is this.- A sandbox inside
bwrapfailing with "No permissions to create a new namespace" is a different AppArmor profile,bwrap-userns-restrict(bubblewrap on Ubuntu 26.04). - "Permission denied" from a tool that worked on 24.04, even as root, can be one of the profiles Ubuntu 26.04 added, such as the one for WireGuard: wg-quick on Ubuntu 26.04.
- A dockerd inside a container that never starts, with "(legacy): can't initialize iptables table" in its log, is the missing kernel modules, not AppArmor: Docker-in-Docker on Ubuntu 26.04.
- A Postgres service that starts and is healthy, but whose dump will not load, is the client version: pg_dump 18 on Ubuntu 26.04.
- A service container that fails the same way on every kernel is usually its health check or its environment variables. Look at the log in the "Service container ... failed" group: an empty log points here.
Other 26.04 failures
- "does not have a Release file" on Ubuntu 26.04: apt.llvm.org has no clang 17 to 20 for
resoluteand the ondrej/php PPA nothing at all, soapt-get updateexits with code 100; installclang-17from Ubuntu, or move PHP to packages.sury.org. - "conda: command not found" on Ubuntu 26.04: the image has no Miniconda and
CONDAis empty, so steps that add$CONDA/binto the PATH, as GitHub's starter workflow and Microsoft's Azure Pipelines guide do, find no conda; install it with setup-miniconda or Miniforge. - ansible-test 2.22 and devel: "mount -o remount,rw /sys/fs/cgroup/ && pkill sleep" returned exit status 1: on the 7.0 azure kernel of the 24.04 and 26.04 images the default test container often fails to start, and re-runs rarely help; run those jobs on
ubuntu-22.04. - "MongoDB cannot start: Linux kernel versions 6.19 and newer": mongo:8.0 and mongo:8.3 read the 7.0 azure kernel of the 24.04 and 26.04 images as 7.0.0 and exit at startup; use mongo:9.0, or
ubuntu-22.04until 8.0.37 and 8.3.16. - "Unable to locate package linux-modules-extra-7.0.0-1017-azure": Ubuntu publishes no extras package for the 7.0 azure kernel, on the 24.04 and 26.04 images; modules such as
vcanare inlinux-modules, already installed, so skip the install and runmodprobe. - BPF on syscalls:sys_enter_* on GitHub's Ubuntu runners: kernel 7.0.0-1017-azure, on the 24.04 image and on the 26.04 images before the image of November 1 (now 7.0.0-1019-azure), runs these programs on one CPU only, so eBPF tests lose events without an error;
ubuntu-22.04is not affected. - PyCQA/bandit-action on Ubuntu 26.04: the action sets up Python 3.8 (3.9 on v1.0.1) with no input to change it, and setup-python has builds for 26.04 only from 3.10; run Bandit in your own steps.
- wg-quick "Permission denied" on Ubuntu 26.04: new AppArmor profiles let
wg-quickandwgread configuration and key files only under/etc/wireguard/, so awg0.confin the workspace fails even withsudo. - setup-swift on Ubuntu 26.04:
swift-actions/setup-swiftv2 stops with "Version "26.04" of Ubuntu is not supported", and swift.org has 26.04 builds only from Swift 6.4.0; use the image's Swift 6.4.2 or theswiftcontainer. - Docker-in-Docker on Ubuntu 26.04: the legacy iptables modules are not loaded, so a dockerd inside a container that uses
iptables-legacy, such as the dev container docker-in-docker feature:2or:3, fails with "can't initialize iptables table `nat'"; move the feature to:4or load the modules on the runner. - pg_dump 18 on Ubuntu 26.04: PostgreSQL on the image and from apt is 18, so dumps start with
SET transaction_timeout = 0and a PostgreSQL 16 service rejects them with "unrecognized configuration parameter". - "Error: write EINVAL" from every WebdriverIO worker on Ubuntu 26.04: v9 starts workers through
xvfb-run, and the 26.04 one does not pass on the IPC channel; fixed in 9.33.1, which npm'slatesttag does not point to yet. - "version `GLIBC_2.43' not found" after building on Ubuntu 26.04: glibc is 2.43, so binaries built there can need
GLIBC_2.42orGLIBC_2.43and fail to start on Ubuntu 24.04, Debian 13 and older; build releases on an older image and check the floor in CI. - bubblewrap on Ubuntu 26.04: a sandbox inside
bwrapfails under AppArmor'sbwrap-userns-restrict. - "client version ... is too old" on Ubuntu 26.04: Docker 29 refuses clients below API 1.40, so older Testcontainers fails with "Could not find a valid Docker environment".
- apt on Ubuntu 26.04: renamed and removed packages.
- "coreutils: unknown program": most core tools are uutils.
See failed jobs from IntelliJ IDEA
Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; Debian is a registered trademark of Software in the Public Interest, Inc.; Docker is a trademark of Docker, Inc.; PostgreSQL is a registered trademark of the PostgreSQL Community Association; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, Software in the Public Interest, Docker, Inc., the PostgreSQL project or JetBrains.
More: "Failed to enable snapd service" on ubuntu-24.04 · "The ubuntu-latest label will migrate to Ubuntu 26" · bubblewrap on Ubuntu 26.04 · GitHub Actions plugins for IntelliJ IDEA compared · 日本語