How can I run a Docker container in AWS Elastic Beanstalk with non-default run parameters?

前端 未结 4 1572
青春惊慌失措
青春惊慌失措 2020-12-17 02:13

I have a Docker container that runs great on my local development machine. I would like to move this to AWS Elastic Beanstalk, but I am run

4条回答
  •  萌比男神i
    2020-12-17 02:45

    If you are using the latest version of aws docker stack (docker 1.7.1 for example), you'll need to slightly modify the above answer. Try this:

    commands:
        00001_add_privileged:
            cwd: /tmp
            command: 'sed -i "s/docker run -d/docker run --privileged -d/" /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh'
    

    Notice the change of location && name of the run script

提交回复
热议问题