简体   繁体   中英

How to create docker base image from Amazon Linux AMI

I am beginner in Docker and i need to implement docker in AWS and i want to create my own images. From the docker docs, i followed the process to create a Dockerfile. My question is how to create a base image using amazon linux ami?

I have a amazon linux machine in aws and i have done some security restriction done in that instance. I want this instance to be a base image for my docker and i want to create other docker images from this base image with all the security restrictions. How can i accomplish this ? Thanks in advance.

If you want only application compatibility, you can try centos image which amazon Linux is based on:

FROM centos

..... 

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM