Reputation: 1640
I am trying to run my python application using colima but getting the following error :
Lambda functions containers initialization failed because of Error
building docker image: creating build container: initializing source
docker://public.ecr.aws/lambda/python:3.9-x86_64: pinging container
registry public.ecr.aws: Get "https://public.ecr.aws/v2/": dial tcp:
lookup public.ecr.aws: no such host
Error: Lambda functions containers initialization failed
ns lookup public.ecr.aws gives the below result
Server: XX.XXX.XX.X
Address: XX.XXX.XX.X#53
Non-authoritative answer:
public.ecr.aws canonical name = a961wdgsh2200aa9b1.awsglobalaccelerator.com.
Name: a961edf72200aa9b1.awsglobalaccelerator.com
Address: xx.x.xxx.xx
Name: a961edf72200aa9b1.awsglobalaccelerator.com
Address: xx.xx.xxx.xx
docker pull hello-world
docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
Status: Image is up to date for hello-world:latest
docker.io/library/hello-world:latest
colima status
INFO[0001] colima is running using macOS Virtualization.Framework
INFO[0001] arch: aarch64
INFO[0001] runtime: docker
INFO[0001] mountType: sshfs
INFO[0001] socket: unix:///Users/username/.colima/default/docker.sock
What can I do to fix the issue. The application works fine with docker but not when I use colima.
Upvotes: 0
Views: 19
Reputation: 1640
The issue was resolved with the command :
colima start --cpu 4 --memory 6 --disk 100 --vm-type=vz --mount-type=virtiofs --dns=1.1.1.1
Upvotes: 0