Skip to content

Cannot manipulate docker sockets from another docker container using latest Ubuntu2404 (September) #12997

@hernandikrammes

Description

@hernandikrammes

Description

I've been using Ubuntu2404 image for running my local tests which depend on the ability of a docker container manipulation. A test container manipulate another docker container in run time (like simulating a primary database drop, killing the container, and then after some time ramping it back again).

Since today (09-10-2025) I'm unable to get my test docker to access the another docker container. I keep receiving

'''
dial unix /var/run/docker.sock: connect: permission denied'
'''

Nothing changed in our environment.
I only notice the change in ubuntu version (I'm always using latest for long time now)

Problem happen at image:
Image: ubuntu-24.04
Version: 20250907.24.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250907.24/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250907.24

Image that worked correctly:
Image: ubuntu-24.04
Version: 20250831.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250831.1/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250831.1

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Image: ubuntu-24.04
Version: 20250907.24.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250907.24/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250907.24

Is it regression?

yes

Expected behavior

Docker container has to be able to access docker.sock to manipualte another docker container inside this image.

Actual behavior

One docker container cannot manipulate another docker container via the exposed docker.sock file to inside the container.

Repro steps

  • Create one docker containers
  • Mount the /var/run/docker.sock:/var/run/docker.sock sindie the container
  • Install docker inside the container
  • Create another docker container
  • Inside the first docker container, try to stop the first docker container, or execute some command
  • It will fail with permission denied

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions