Skip to content

Instantly share code, notes, and snippets.

@dwelch2344
Created May 18, 2015 19:14
Show Gist options
  • Save dwelch2344/88571707f0a4b83994f3 to your computer and use it in GitHub Desktop.
Save dwelch2344/88571707f0a4b83994f3 to your computer and use it in GitHub Desktop.
ubuntu 14 docker and ECS agent
#!/bin/bash
sudo su
wget -qO- https://get.docker.com/ | sh
exit
sudo usermod -aG docker $USER
CLUSTER=default
sudo docker run --name ecs-agent -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/log/ecs/:/log -p 127.0.0.1:51678:51678 \
-v /var/lib/ecs/data:/data \
-e ECS_LOGFILE=/log/ecs-agent.log \
-e ECS_LOGLEVEL=info \
-e ECS_DATADIR=/data \
-e ECS_CLUSTER=$CLUSTER \
amazon/amazon-ecs-agent:latest
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment