Apt update not working after upgrade to Docker Desktop 4.16

Its work fine for me, but with docker’s last update (4.16.0 or 4.16.1) stop working
running apt update
output:

root@73d6b9f30488:/# apt update
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://archive.ubuntu.com trusty-backports InRelease

Err http://archive.ubuntu.com trusty Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-security Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-backports Release.gpg
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

try with ssh
output:

ssh root@10.211.55.4
socket: Function not implemented
ssh: connect to host 10.211.55.4 port 22: Function not implemented

Would you mind explaining how your post is related to the topic? I fail to see how Docker Desktop would be related to 32bit containers on 64bit host.

I don’t know, tell me where should I publish?, because this feature work fine until docker desktop 4.15.0
Please guide me where I should put the post

I moved the parts of the discussion to this new topic. Since you didn’t share what Docker Desktop flavor you use, I assumed Windows.
The ssh parts needs further explanation: it provides no context what target you try to access via ssh and for what reason and if it worked with the old version.

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

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

Same issue here too. Running a 32bit app in an Ubuntu container hosted on 64bit Windows 10.

errno: 38): socket error: Function not implemented

Line of code that triggers the error:
int sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

The same source works in 4.15 but errors in 4.16

Raised socket: Function not implemented on 4.16 · Issue #6689 · docker/for-mac · GitHub

2 Likes