Last active
July 9, 2020 21:49
-
-
Save metcalfc/b05847339b711d0d55acd6f47aab2333 to your computer and use it in GitHub Desktop.
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/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,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.