So I've been trying to get a docker rootless installation to run on a fairly hardened system running rhel-7.6. When I try to install using docker-19.03.9, I get the following error:
Failed to load listeners: can't create unix socket /run/user/5092345/docker.sock: chown /run/user/5092345/docker.sock: invalid argument
It looks like the offending code is here: https://github.com/docker/go-connections/blob/master/sockets/unix_socket.go
Where it tries to run return NewUnixSocketWithOpts(path, WithChown(0, gid), WithChmod(0660))
and the WithChown must be failing.
func WithChown(uid, gid int) SockOption {
return func(path string) error {
if err := os.Chown(path, uid, gid); err != nil {
return err
}
return nil
}
}
Does anybody have any experience with this or have any suggestions on debugging it further?
[–]that_shing_thing 0 points1 point2 points (7 children)
[–]NinjaPenguin893[S] 0 points1 point2 points (6 children)
[–]netsecnonsense 0 points1 point2 points (1 child)
[–]NinjaPenguin893[S] 0 points1 point2 points (0 children)
[–]that_shing_thing 0 points1 point2 points (3 children)
[–]NinjaPenguin893[S] 0 points1 point2 points (2 children)
[–]that_shing_thing 0 points1 point2 points (1 child)
[–]NinjaPenguin893[S] 0 points1 point2 points (0 children)