Created
May 18, 2015 19:14
-
-
Save dwelch2344/88571707f0a4b83994f3 to your computer and use it in GitHub Desktop.
ubuntu 14 docker and ECS agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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