I’m trying to run docker:rc-dind-rootless
on Alpine Linux 3.16 (running inside a VirtualBox VM)
I’ve followed the steps on the documentation, first, i’ve executed:
docker run --rm --privileged --name dind -dt docker:rc-dind-rootless
And then:
docker exec -it dind docker-entrypoint.sh sh
The socket is never created at /run/user/1000/docker.sock
, instead DOCKER_HOST
is set to tcp://docker:2376
, consequently making Docker commands fail with the no such host
message
When checking the logs, the following error message appears:
Signature ok
subject=CN = docker:dind client
Getting CA Private Key
/certs/client/cert.pem: OK
Device "ip_tables" does not exist.
ip_tables 32768 2 iptable_filter,iptable_nat
x_tables 49152 6 xt_conntrack,xt_MASQUERADE,xt_addrtype,iptable_filter,iptable_nat,ip_tables
modprobe: can't change directory to '/lib/modules': No such file or directory
open: No such file or directory
[rootlesskit:child ] error: executing [[ip tuntap add name tap0 mode tap] [ip link set tap0 address 02:50:00:00:00:01]]: exit status 1
Strangely enough, it works fine on my Arch Linux (bare-metal) host, running, below are the versions of Docker that i’m running on each environment:
- bare-metal:
Docker version 20.10.17 (build 100c70180f)
- vm:
Docker version 22.06.0 (build 3e9117b)
Any clue of what might be happening? i wonder if the Docker version mismatch between both environments might be the one to blame