Docker getting-started Internal error: java.nio.channels.AsynchronousCloseException
I am learning Docker by following https://docs.docker.com/get-started/ and https://github.com/docker/getting-started/tree/master/app .
I follow
https://blog.jetbrains.com/idea/2021/01/run-targets-run-and-debug-your-app-in-the-desired-environment/
to debug the Docker getting-started app.
I get
"Internal error: Error while executing Request{method=POST, path=/build?t=getting-started&rm=true, body=com.intellij.docker.agent.build.ContextFolderArchive$createInputStream$1@4a39f044, bodyBytes=null, hijackedInput=null, headers={accept=application/json, Content-Type=application/tar, encoding=gzip}}
Failed to deploy '<unknown> Dockerfile: Dockerfile': java.net.SocketTimeoutException: timeout<br/>caused by: java.io.IOException: java.nio.channels.AsynchronousCloseException"
Attached the screen shot.
My system info:
IntelliJ IDEA Community Edition 2020.3.3
docker version
Client: Docker Engine - Community
Cloud integration: 1.0.9
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Built: Tue Mar 2 20:14:53 2021
OS/Arch: windows/amd64
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Built: Tue Mar 2 20:15:47 2021
OS/Arch: linux/amd64
containerd:
Version: 1.4.3
runc:
Version: 1.0.0-rc92
docker-init:
Version: 0.19.0
Microsoft Windows 10 Home 10.0.18363 N/A Build 18363
WSL2 Ubuntu 20.04 LTS.
My Docker installation seems ok.
I do not see any errors in:
docker run -dp 3000:3000 getting-started
However,
http://localhost:3000
get the error page:
Unable to connect
Firefox can’t establish a connection to the server at localhost:3000.
docker logs 87bd7f8e2c1e
>>
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
PS C:\DockerNote\getting-started-master> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
87bd7f8e2c1e getting-started "/docker-entrypoint.…" 31 minutes ago Up 31 minutes 80/tcp, 0.0.0.0:3000->3000/tcp vigorous_snyder

Please sign in to leave a comment.
Can you share a sample project including the .idea directory?
You can upload it to https://uploads.jetbrains.com/ or attach to a new issue on YouTrack: https://youtrack.jetbrains.com/newIssue?project=IDEA
Seems similar to https://youtrack.jetbrains.com/issue/IDEA-264293
I powered off and on my computer.
I tried again and the problem disappeared :).
Log tab in the IntelliJ IDEA:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up