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

前端 未结 4 1555
青春惊慌失措
青春惊慌失措 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条回答
  •  醉梦人生
    2020-12-17 02:30

    Add file .ebextensions/01-commands.config

    container_commands:
        00001-docker-privileged: command: 'sed -i "s/docker run -d/docker run --privileged -d/" /opt/elasticbeanstalk/hooks/appdeploy/pre/04run.sh'
    

    I am also using s3fs

提交回复
热议问题