You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to successfully get task metadata from the v3 metadata uri due to a failure to connect to the docker.sock file.
In order to avoid any issues stemming from my application itself, I opened a terminal in the ecs-local-endpoints container, and tested some curl commands. The output matches what I see in the logs when I call from my application.
sh-4.2# curl http://169.254.170.2/v3
Internal Server Error: Failed to list running containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
sh-4.2# curl http://169.254.170.2/v3/task
Internal Server Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
The docker.sock file is properly mapped into the container. And just in case the symlink was an issue, I also tried just mapping the direct path, but it doesn't seem to make a difference.
sh-4.2# ls -l /var/run/docker.sock
lrwxr-xr-x 1 root root 43 Nov 28 20:23 /var/run/docker.sock -> /Users/my.username/.docker/run/docker.sock
## and with direct path mapped ##
sh-4.2# ls -l /var/run/docker.sock
srwxr-xr-x 1 root root 0 Dec 6 16:08 docker.sock
I am unable to successfully get task metadata from the v3 metadata uri due to a failure to connect to the docker.sock file.
In order to avoid any issues stemming from my application itself, I opened a terminal in the
ecs-local-endpoints
container, and tested some curl commands. The output matches what I see in the logs when I call from my application.The creds endpoint works just fine:
The docker.sock file is properly mapped into the container. And just in case the symlink was an issue, I also tried just mapping the direct path, but it doesn't seem to make a difference.
Here is my docker-compose overrides file:
I am using the latest version of Docker Desktop -- 4.15.0 (93002) on an M1 Macbook running MacOS 13.0
Is there something obviously wrong here, or is there a known issue either with running on M1 Macs or newer versions of docker?
The text was updated successfully, but these errors were encountered: