Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws ami docker image differences #4

Closed
fernandoaleman opened this issue Mar 8, 2017 · 4 comments
Closed

aws ami docker image differences #4

fernandoaleman opened this issue Mar 8, 2017 · 4 comments

Comments

@fernandoaleman
Copy link

I am new to the amazon ami docker images. When I spin up the ami docker image, I notice that things that are normally already installed on the ami on aws when I spin up a new ec2 server are missing. For example, aws cli tools, ec2-user etc. I understand things work a bit differently with docker, but was hoping to simulate a similar environment for testing locally. So just curious, why were these excluded? Thank you!

@praveen-pk
Copy link
Contributor

Docker images are usually kept minimal for quick downloads. We also installed minimal set of packages in amazon linux's docker images to keep the image size as small as possible.

You can either install the packages you need at/after startup of amazon linux container or you can create a new docker image yourself with all extra packages you need.

@fernandoaleman
Copy link
Author

@praveen-pk Ok, that makes sense. So basically, if I install aws cli tools, java, python, ruby and create an ec2-user, it should be the same as the ami image on aws?

@praveen-pk
Copy link
Contributor

yes, that is correct. I am not sure how you are using the ec2-user account. But, the amazon linux docker images and amis are configured with the same set of yum repositories. So, you will end up with the same set of packages in both cases.

@fernandoaleman
Copy link
Author

Excellent, thank you @praveen-pk 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants