"pull access denied" when running containers (and other ECS agent issues)
Previous401 Unauthorized when the s3_start_transfer Lambda tries to runNext"Unauthorized for url" when logging in
Last updated
Last updated
It is possible for the ECS agent running on an EC2 host to get into a bad state that prevents containers from starting on the host.
An error we have seen resulting from this is:
CannotPullContainerError: Error response from daemon: pull access denied
Although permissions are correctly configured. Restarting the ECS agent on the EC2 host machine resolved that issue.
There may be other issues which arise from having a long running EC2 instance as a cluster host. Out of date or broken ECS agent, or exhausting file system space are potential issues. Restarting the EC2 instance may result in having to perform step 8 of the .
It may also be useful to and poke around inside the containers.