Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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

This comment has been minimized.

Copy link
Owner Author

@metcalfc 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
You can’t perform that action at this time.