Search code examples
dockeramazon-ec2amazon-ami

Running Amazon-Linux Docker Image on MacOS


I was able to download amazon linux's image from this dockerhub -

ambakshi/amazon-linux    2016.03   083f32382cc4  4 months ago        142.7 MB

But I'm not able to do "yum install" any package on it. Keeps giving a 403 Forbidden error.

[root@8ea0c348a91c /]# yum install lxml
Loaded plugins: priorities, update-motd, upgrade-helper http://packages.us-west-2.amazonaws.com/2016.09/main/20160901f6a8/x86_64/repodata/repomd.xml?instance_id=fail&region=URLError: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden" Trying other mirror.

IS there something I'm missing? I'm trying all of this in Mac OS. Can someone please help?

Thanks Ramya


Solution

  • Answering my own question:

    Amazon has now released official "Amazon Linux" Docker Images which can be used for local development: Please check the details here: https://aws.amazon.com/blogs/aws/new-amazon-linux-container-image-for-cloud-and-on-premises-workloads/

    http://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html