Sign inSign up

pecigonzalo/docker-init-aws

By pecigonzalo

•Updated over 9 years ago

Docker Swarm on AWS init script

Image
1

5.4K

pecigonzalo/docker-init-aws repository overview

⁠Docker Swarm for AWS Init

Initializes Docker Swarm cluster members

Example project: Terraform docker-swarm⁠

⁠Description

This container will initialize the Docker Swarm if the first node or will perform actions to join the cluster if it detects and existing node. It will interact with the DynamoDB to discover the primary manager and using the docker-meta-aws⁠ service get its corresponding token to join.

⁠Usage
⁠Paramaters
ParameterExampleDescription
DYNAMODB_TABLE-DynamodDB table ID
NODE_TYPEworker / managerRole of the node we are running on
REGIONeu-central-1AWS Region ID
⁠Example
docker run -d \
  --restart=no \
  -e DYNAMODB_TABLE=$DYNAMODB_TABLE \
  -e NODE_TYPE=$NODE_TYPE \
  -e REGION=$AWS_REGION \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /usr/bin/docker:/usr/bin/docker \
  pecigonzalo/init-aws

Tag summary

Content type

Image

Digest

Size

42.9 MB

Last updated

over 9 years ago

docker pull pecigonzalo/docker-init-aws