moby: Docker v26.0.2 fails to create containers on gitpod (`Error: open /proc/sys/net/ipv6/conf/eth0/disable_ipv6: read-only file system`)
Description
Error: open /proc/sys/net/ipv6/conf/eth0/disable_ipv6: read-only file system
Reproduce
Even with the attempted workaround:
docker run --sysctl=net.ipv6.conf.all.disable_ipv6=1 ubuntu
Output:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: failed to add interface vethc71242a to sandbox: error setting interface "vethc71242a" IPv6 to <nil>: failed to configure ipv6: failed to disable IPv6 forwarding for container's interface eth0: open /proc/sys/net/ipv6/conf/eth0/disable_ipv6: read-only file system: unknown.
ERRO[0005] error waiting for container: context canceled
Expected behavior
No response
docker version
Client: Docker Engine - Community
Version: 26.0.2
API version: 1.45
Go version: go1.21.9
Git commit: 3c863ff
Built: Thu Apr 18 16:27:07 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.0.2
API version: 1.45 (minimum version 1.24)
Go version: go1.21.9
Git commit: 7cef0d9
Built: Thu Apr 18 16:27:07 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
gitpod:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfcb
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client: Docker Engine - Community
Version: 26.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.14.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.26.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 2
Server Version: 26.0.2
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: false
userxattr: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: gitpod io.containerd.runc.v2 runc
Default Runtime: gitpod
Init Binary: docker-init
containerd version: e377cd56a71523140ca6ae87e30244719194a521
runc version: v1.1.9-0-gccaecfcb
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.1.75-060175-generic
Operating System: Ubuntu 22.04.4 LTS (containerized)
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 62.79GiB
Name: dakotaxyz-dakota-2w017zk6yxn
ID: 29bd3cc6-8cd0-43ce-a49c-d76bc53fd5e3
Docker Root Dir: /workspace/.docker-root
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional Info
This is running within a gitpod, and so there may be another layer in the middle.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (8 by maintainers)
Maybe this helps somebody, here’s what I did to get docker (> 26.0.1) working again on debian in a jailmaker envoirnment:
add the following to ipv6.conf (see #47774):
reload systemd and restart docker
Hi @jaedmunt - there are instructions for various supported Linux distros at https://docs.docker.com/engine/install/ … the page for each platform has a “Specific version” tab in section “Install Docker Engine”.
@jaedmunt if you’re using jailmaker and are on Debian bookwork, run this from the jail:
apt-get install docker-ce=5:26.0.1-1~debian.12~bookworm docker-ce-cli=5:26.0.1-1~debian.12~bookwormAlso, make sure to disable unattended upgrades for the moment (
dpkg-reconfigure unattended-upgrades) if you have them enabled. Otherwise, things will break every few hours.Ahh - right! Thank you, I think that explains things.
Oh, also 👋 @joeabbey ! (just now spotted who opened this ticket) hope you’re doing well!