HOWTO deploy a docker container on aws without using elastic beanstalk or ec2 container service

前端 未结 2 1632
悲&欢浪女
悲&欢浪女 2021-02-06 13:28

I\'d like to use docker containers without having to use elastic beanstalk or ec2 container service. I\'d like to upload a .zip file describing the container (like

2条回答
  •  迷失自我
    2021-02-06 14:34

    The user data is basically just a bash script that is run when the instance boots up first time.

    If you want to look into setting up an instance from scratch on instance creation I suggest you have a look at CloudInit and how to use it in CloudFormation. http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-init.html

    With CloudInit you can describe files to be placed, packages to be installed and services to be enabled for start at boot.

提交回复
热议问题