docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.43k stars 118 forks source link

socket: Function not implemented on 4.16 #6689

Closed sishanks closed 1 year ago

sishanks commented 1 year ago

Expected behavior

ability to use i386/debian:10 on intel mac version

Actual behavior

(happened after upgrading from 4.15 to 4.16.1) - seems to be 32bit related. Was working on previous version.

Information

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Steps to reproduce the behavior

Using docker-mac (intel)

docker run --platform=linux/386 -it --rm i386/debian:10
root@71dfc1d7ca5b:/# ping 8.8.8.8
ping: socket: Function not implemented

using 64bit version works…

docker run -it --rm debian:10
root@0a4ef754f5c6:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=36 time=25.3 ms
Jbat1Jumper commented 1 year ago

Running into the same issue here

Can confirm that this also happens in 4.16.0

thaJeztah commented 1 year ago

@gabriellavengeo could this be related to AF_VSOCK ?

sishanks commented 1 year ago

for reference, this can cause various other operations to fail, which hide the root cause of the failing socket on 32bit, e.g.

docker run --platform=linux/386 -it --rm i386/debian:10
root@aa6628b51bf2:/# apt-get update
Err:1 http://deb.debian.org/debian buster InRelease
  Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian-security buster/updates InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian buster-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead
gabriellavengeo commented 1 year ago

We identified the problem, it will be fixed in the upcoming patch release (4.16.2).

mat007 commented 1 year ago

We have just released Docker Desktop 4.16.2 with a fix!

docker-robott commented 1 year ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked