Mailspring/.ebextensions/enable_docker_cli_on_ssh.config

10 lines
437 B
Text
Raw Normal View History

# This lets you log in via `eb ssh` and access the docker daemon.
# If we don't add the ec2-user to the docker group, then calls to docker
# (like `docker ps`) will fail with `Cannot connect to the Docker daemon`
#
# See: https://blog.cloudinvaders.com/connect-to-docker-daemon-on-aws-beanstalk-ec2-instance/
commands:
0_add_docker_group_to_ec2_user:
command: gpasswd -a ec2-user docker
test: groups ec2-user | grep -qv docker