Skip to content

Instantly share code, notes, and snippets.

@metcalfc
Last active July 9, 2020 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metcalfc/b05847339b711d0d55acd6f47aab2333 to your computer and use it in GitHub Desktop.
Save metcalfc/b05847339b711d0d55acd6f47aab2333 to your computer and use it in GitHub Desktop.
#!/bin/sh
if ! command -v curl &> /dev/null
then
echo "We'll need curl which could not be found"
exit
fi
if ! command -v jq &> /dev/null
then
echo "We'll need jq which could not be found"
exit
fi
curl -LO https://github.com/docker/ecs-plugin/releases/latest/download/docker-ecs-linux-amd64
chmod +x docker-ecs-linux-amd64
mkdir ~/.docker/cli-plugins
mv docker-ecs-linux-amd64 ~/.docker/cli-plugins/docker-ecs
cat ~/.docker/config.json | jq '. + {experimental: "enabled"}' > ~/.docker/config.json2; mv -f ~/.docker/config.json{2,}
@metcalfc
Copy link
Author

metcalfc commented Jul 9, 2020

You can run this via curl https://gist.githubusercontent.com/metcalfc/b05847339b711d0d55acd6f47aab2333/raw/f03c98d63057521dbeba62e1a80d78197477f42d/install-ecs-plugin.sh | bash If you're the live dangerously type.

Just remember that you've done this. When dokcer-ecs is shipped by docker you might shadow it with this copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment